xuchunyang / vlc.el

Control VLC Media Player from Emacs
GNU General Public License v3.0
15 stars 3 forks source link

Feature request: provide exact date/time capturing #2

Open gnusupport opened 1 year ago

gnusupport commented 1 year ago

It will be useful to provide function which can return exact date and time of video being played.

Then such function can serve to other packages such as Org, Hyperscope, eev, etc. to create hyperlinks to video at exact time.

mpv package has such feature.

xuchunyang commented 1 year ago

exact date and time of video being played.

Did you mean the duration of video which is playing in VLC? If so, try this

(seconds-to-string
 (alist-get 'time
            (vlc--get "/requests/status.json")))
;; => "3.37m"

mpv package has such feature

I've not used the package and I don't think I understand the feature.