Get Broadcast name for seeking in a stream

This forum is about all development around libVLC.
dreadLocks
Blank Cone
Blank Cone
Posts: 18
Joined: 31 May 2016 23:39

Get Broadcast name for seeking in a stream

Postby dreadLocks » 30 Jun 2016 22:59

Hello,

Im using VLC in Visual C++ application to play and MP3 file, it works so far.

Now I want to give the user the ability to move back and forth in the MP3 being played (seeking, fast forward, rewind etc)

The file is being played from memory buffer using the "libvlc_media_new_callbacks" function

I saw a function that looks like it can be used for seeking:

// Seek in the named broadcast.
//
// param p_instance the instance
// param psz_name the name of the broadcast
// param f_percentage the percentage to seek to
//return 0 on success, -1 on error
//
LIBVLC_API int libvlc_vlm_seek_media( libvlc_instance_t *p_instance, const char *psz_name, float f_percentage );

It requires a broadcast name in the second parameter. I dont have any broad cast name, im playing from memory, how do I get the broadcast name?

Also the last parameter is a percentage, is that value from 0 to 100, or from 0 to 1.0, it doesnt say anywhere.

Or, maybe there is another function i can use????

Anybody knows?

Thanks

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Get Broadcast name for seeking in a stream

Postby Jean-Baptiste Kempf » 03 Jul 2016 11:55

No, this is vlm. You don't want that.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 9 guests