Page 1 of 1

Get Broadcast name for seeking in a stream

Posted: 30 Jun 2016 22:59
by dreadLocks
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

Re: Get Broadcast name for seeking in a stream

Posted: 03 Jul 2016 11:55
by Jean-Baptiste Kempf
No, this is vlm. You don't want that.