Playing SDP fie from libvlc

This forum is about all development around libVLC.
vijayananda1980
New Cone
New Cone
Posts: 1
Joined: 15 Feb 2010 09:50

Playing SDP fie from libvlc

Postby vijayananda1980 » 15 Feb 2010 10:10

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!!! :cry: :roll:

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);

Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 43 guests