Is there a libvlc_media_set_bytepos() ?

This forum is about all development around libVLC.
entretoize
New Cone
New Cone
Posts: 5
Joined: 21 Dec 2015 07:38

Is there a libvlc_media_set_bytepos() ?

Postby entretoize » 26 Jan 2016 19:43

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Is there a libvlc_media_set_bytepos() ?

Postby Rémi Denis-Courmont » 26 Jan 2016 20:10

Of course not. The byte position is controlled by the file format according to the current playback time.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

entretoize
New Cone
New Cone
Posts: 5
Joined: 21 Dec 2015 07:38

Re: Is there a libvlc_media_set_bytepos() ?

Postby entretoize » 26 Jan 2016 22:31

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 ...

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Is there a libvlc_media_set_bytepos() ?

Postby Rémi Denis-Courmont » 26 Jan 2016 22:44

That depends on the file format.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 27 guests