It seems that the main.js is missing. Have you add both manifest.json and main.js from GitHub release to the media-extended-main folder?


These two files should be included. If you did and still got the same error, may try to open the file with a text editor to see if the file is garbled or empty.

When I download your files from here there is no main.js file. Should I suppose to download it from somewhere else?

Here are main.js and manifest.json, It seems that you’ve downloaded the source code.

Thank you @aidenlx for this very useful plugin ! It works great for me with .mp4 files but fails with .webm files.

Here is what the html source looks like for the audio element. It seems that the media-fragment syntax has not been added at the end of the file path inside the audio tag.

<span alt="Recording 20210327113219.webm > t=6" src="Recording 20210327113219.webm#t=6" class="internal-embed media-embed is-loaded">
    <audio controls="" src="app://local/C%3A%5CTemp%5CRecording%2020210327113219.webm?1618008194520">
    </audio>
</span>

And for the video element, the media fragment is effectively here.

<span alt="20180625_013222.mp4 > t=5,15" src="20180625_013222.mp4#t=5,15" class="internal-embed media-embed is-loaded">
    <video controls="" src="app://local/C%3A%5CTemp%5C20180625_013222.mp4?1618006957050#t=5,15">
    </video>
</span>

Fixed in Release 1.0.1 · alx-plugins/media-extended (github.com)

2 Likes

It works great ! :+1:t3: :+1:t3: :+1:t3:

Excellent work! Thank you so much for this plugin!

@aidenlx do you think this idea can be implemented to embeded youtube videos? That would be game changing.

4 Likes

Yes, It’s totally possible. :wink:
It’ll take some time for me to figure out exactly how, and should be done probably at the end of this week.

3 Likes

@aidenlx And do you think it could possible to develop a shortcut that, while listening to the audio file, automatically creates the embedded link with the current/active timestamp ?

Or, as described in another existing feature request (Audio Recorder with timestamped notes), directly when adding a newline in a note.

1 Like

Done in v2.1.0, also supports Vimeo videos

3 Likes

This is what I dreamed for 2 months thank you so much @aidenlx.
Just one further implementation could be awesome. “Resizing the video frame” as we can do in iframe code (i.e. <iframe width=“560” height=“315” etc.)

1 Like

Another good idea would be if your plugin understand also the youtube video link in this format https://youtu.be/bVquLXTq4bQ as well. Because when you enter youtube with right click you can easily extract the code in this form (not in this form https://www.youtube.com/watch?v=bVquLXTq4bQ)
Again thanks very much for your effort! :smiley:

Glad to help :relaxed:
But sadly I won’t have too much time to add more features for quite some time after this update. I’ll keep track of all your suggestions on GitHub Issue and Project and see if I can make some time.

No worries you did a great job! Thank you for your contribution. :blush:

It’s now tracked in Feature Request: Create links for timestamps from player

1 Like

Tracked in Feature Request: Syntax for embed options

Done in v2.2.0

I see your update today. Awesome @aidenlx! Thank you so much. :clinking_glasses:

However I have a question. Is it possible to create jumping timestamps for youtube videos?
I try but I think I am wrong at one point.

It’s not yet supported, since I haven’t figure out how exactly should a new leaf be opened with embeds. Also the shorthand syntax is not yet determined to avoid lengthy url+timesatmp. It will take some time.