Page 1 of 1

Catch rtsp/http disconnections while playing

Posted: 03 Jun 2011 16:48
by marranxo
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);