Page 1 of 1

Problem getting current time in m3u8 streams

Posted: 21 Oct 2013 10:37
by lzuwei
VLC Player is able to play HLS streams but it does not indicate the current playback time and the total duration of the m3u8 file.
This problem also occurs when using libVLC when calling:

libvlc_media_player_get_time(_vlcMediaPlayer); //returns 0
libvlc_media_player_get_length(_vlcMediaPlayer); //returns 0

What might be causing this problem, is this caused by the stream filter?
Is there a solution to this problem?

Re: Problem getting current time in m3u8 streams

Posted: 21 Oct 2013 10:55
by Jean-Baptiste Kempf
Noone has implemented the length on HLS.

Re: Problem getting current time in m3u8 streams

Posted: 21 Oct 2013 11:56
by lzuwei
I am using libvlc to handle m3u8 streams, the software we build needs the current time and length of the HLS because we are doing some computation based on the video offset.
Is the work to implement this feature complex? Are there any plans to implement this?

Thank you!

Re: Problem getting current time in m3u8 streams

Posted: 21 Oct 2013 13:01
by Jean-Baptiste Kempf
Not that much. Maybe.

Re: Problem getting current time in m3u8 streams

Posted: 22 Oct 2013 04:22
by lzuwei
Thank you! It will be great if this is implemented on the next release of VLC.
I would not mind in helping to implement this feature as well. Is there someone that I can talk to so I could understand the details on implementing this?