Page 1 of 1

libvlc_MediaPlayerEndReached - Now What ?

Posted: 25 Jan 2012 08:43
by lordawe
I am processing an libvlc_MediaPlayerEndReached event and would like to reset the video to the front with SetPos() so that Play() will work again. Do I need to go through the same steps as I initially did to open and play the video in the first place or is there an alternative?
TIA.

Re: libvlc_MediaPlayerEndReached - Now What ?

Posted: 25 Jan 2012 19:31
by mangokm40
You will need to use the search function to get the details. However, I'm responding to this event by creating a thread that makes some decisions about looping, randomizing, etc. Based on those decisions, I use libvlc_media_player_set_media to get the next media ready and libvlc_media_player_play to start it.
I'm a neophyte, so take this with a grain of cheap, Mexican salt. :)

Saludos