Page 1 of 1

Is there a libvlc_media_set_bytepos() ?

Posted: 26 Jan 2016 19:43
by entretoize
Hello, I'm trying to go to a specific position in a video file that is downloading but I can't get the video length, and then can't convert a position in bytes to a position in ms.
I tried to understand how libvlc_media_set_time works but didn't find...
Is there a way to set the position given in bytes ?

Thanks

Re: Is there a libvlc_media_set_bytepos() ?

Posted: 26 Jan 2016 20:10
by Rémi Denis-Courmont
Of course not. The byte position is controlled by the file format according to the current playback time.

Re: Is there a libvlc_media_set_bytepos() ?

Posted: 26 Jan 2016 22:31
by entretoize
OK thanks, then how the lib goes to somewhere in a video as the bitrate is variable ? Doesn't it convert the time to byte first ? Just to understand ...

Re: Is there a libvlc_media_set_bytepos() ?

Posted: 26 Jan 2016 22:44
by Rémi Denis-Courmont
That depends on the file format.