Catch rtsp/http disconnections while playing

This forum is about all development around libVLC.
marranxo
Blank Cone
Blank Cone
Posts: 24
Joined: 03 Jun 2011 11:46

Catch rtsp/http disconnections while playing

Postby marranxo » 03 Jun 2011 16:48

Hi,

When I play any remote source using libvlc I didn't notice about disconections. I plug off the ethernet cable and I'm still receiving frames (the last-one) periodically for more than 15 minutes.

Is there any solution?

Edit:

Using libvlc_media_player_event_manager with libvlc_event_attach on libvlc_MediaPlayerEncounteredError, libvlc_MediaPlayerEndReached and libvlc_MediaPlayerStopped.
libvlc_video_set_callbacks(m_pMediaPlayer, Lock, Unlock, Display, this);
libvlc_video_set_format(m_pMediaPlayer, "RGBA", usWidth, usHeight, usWidth * 4);

Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 6 guests