Streaming problem

This forum is about all development around libVLC.
Ploppyman
Blank Cone
Blank Cone
Posts: 25
Joined: 29 Jun 2012 18:39

Streaming problem

Postby Ploppyman » 02 Jun 2013 18:37

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

sherington
Cone that earned his stripes
Cone that earned his stripes
Posts: 491
Joined: 10 Sep 2008 11:57
VLC version: master
Operating System: Linux

Re: Streaming problem

Postby sherington » 03 Jun 2013 08:06

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.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 1 guest