Hi all,
Past 2-days I am trying to find out , way to play SDP files from libvlc. When I try plying the SDP file using VLC player , it play fine. But from LibVLc, I am not able to get right way to play it.
Can anyone please help me figure out what I am doing wrong or what I should do to make it work!!!
Code Snippet :
/* init vlc modules, should be done only once */
inst = libvlc_new(sizeof(myargs) / sizeof(myargs[0]),myargs, &ex);
raise (&ex);
m = libvlc_media_new(inst, "Sample.sdp", &ex);
raise (&ex);
/* Create a media player playing environement */
mp = libvlc_media_player_new_from_media (m, &ex);
raise (&ex);
libvlc_media_player_set_media (mp, m, &ex);
raise(&ex);
/* play the media_player */
libvlc_media_player_play (mp, &ex);
raise (&ex);
/* No need to keep the media now */
libvlc_media_release (m);
/* Play the video clip, until it ends */
libvlc_media_player_play (mp, &ex);
raise (&ex);