Using links that are timecoded/deeplinked in order to trigger audio player from Joplin

Operating system

Linux

Joplin version

3.5.12

Desktop version info

Joplin 3.5.12 (prod, linux)

Device: linux, Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
Sync Version: 3
Profile Version: 49
Keychain Supported: No
Alternative instance ID: -

Backup: 1.5.1
Freehand Drawing: 4.2.0

Sync target

File system

Editor

Markdown Editor

What issue do you have?

Is there a workaround for the open: Feature request: Preserve `#t=a,b` and `#page=n` hashes when rendering PDF and audio/video viewers · Issue #9745 · laurent22/joplin · GitHub
I found so far that i can use something like the following to trigger VLC to open this file.

  • ["Figure it out" -Dr. Becker - (Rebalancing 2 - Track 15)](file:///%2Fhome%2Ffubar%2FDesktop%2FFiles%2F12%20-%20Rebalancing%20and%20Side%20Effects%202%2F15%20-%20Track%2015.mp3)

If I append #t=2190 to the mp3 link, VLC complains it's not valid.
So I'm wondering if anyone has come up with a workaround?

Note: I reformat the path using echo -n "Your Path Here" | jq -s -R -r @uri which will translate whitespace, dashes etc into URL escape code

Interesting problem. I tried a bit, but couldn't find a solution. Technically it's possible to include this kind of information in an URI:

It looks like even if the complete URI would be forwarded to VLC, VLC would play the file, but ignore the query (?t=2190) or fragment (#t=2190). Also other players, like mplayer or mpv seem to not support arguments inside the URI.

Edit: I think in your case, the URI should look like file:///home/fubar/Desktop/Files/12%20-%20Rebalancing%20and%20Side%20Effects%202/15%20-%20Track%2015.mp3.

Continuing the discussion from Using links that are timecoded/deeplinked in order to trigger audio player from Joplin:

Firstly, thank you, I fixed the formatting per your suggestion

The post was marked as suspicious and put on hold. It was just released.

Good news, since the time of writing this, the feature mentioned earlier had a PR submitted for it.

Also got another idea from laurent22 in Desktop,Mobile: Resolves #9745: Markdown: Allow specifying the start/end of audio, videos, and PDFs by personalizedrefrigerator · Pull Request #14257 · laurent22/joplin · GitHub

I'm not sure there's a standard way to do this as this is application-specific. But a plugin could be implemented probably that would call something like vlc /path/to/video.mp4 --start-time=90

I have no experience coding in typescript though.