Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Send media length to frontend #45

Open
nicmr opened this issue Mar 5, 2020 · 1 comment
Open

Send media length to frontend #45

nicmr opened this issue Mar 5, 2020 · 1 comment
Labels
VLC related to libvlc / the vlc media player

Comments

@nicmr
Copy link
Owner

nicmr commented Mar 5, 2020

Frontends require the track length to display track length and progress bars.

Cannot done for all tracks in advance because the information is only computed by libvlc when the track is played.

Solution: https://docs.rs/vlc-rs/0.3.0/vlc/sys/fn.libvlc_media_player_get_length.html
Unfortunately not yet wrapped by the rust wrapper for libvlc so it's unsafe :/

Remaining issues: cannot compute total playlist / album length

@nicmr nicmr added the VLC related to libvlc / the vlc media player label Mar 5, 2020
@nicmr
Copy link
Owner Author

nicmr commented Mar 8, 2020

mostly implemented as of d1743d4
there's still a small issue remaining with the track length being 0 until the page is refreshed, which is probably caused by calling the function to determine the track length before the media has finished loading. will fix in the next days.

@nicmr nicmr changed the title Send track length to frontend Send media length to frontend Mar 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
VLC related to libvlc / the vlc media player
Projects
None yet
Development

No branches or pull requests

1 participant