Page 1 of 1

Streaming problem

Posted: 02 Jun 2013 18:37
by Ploppyman
Can anyone help with my current problem. For the mo I'm getting nowhere with this one. Can anyone tell me if there is a way/function to tell me when and if vlc is downloading a stream (loaded using libvlc_media_new_location) to a buffer and not currently playing? The thing is that libvlc_media_player_is_playing will return true even if the player is not actually playing but only for the moment downloading to the buffer until sufficient data is available to resume playback. This is not enough info for me, I need to know when the player is not playing, when it is buffering and when it is playing for my program to work correctly. To rub salt further into the wound, if you try to stop/release a media while the internet stream is being downloaded to a buffer, vlc will crash.

Am I doing something wrong, or is this a vlc bug??? If so, is there a way around this????

Re: Streaming problem

Posted: 03 Jun 2013 08:06
by sherington
I'm not sure if this it's exactly what you're asking for, but there is a "media player buffering" event.

The crash is some other problem of course.