Hi,all!
how to get the program list of a ts stream and choose one to play.
in my project,I get ts stream from usb and play it properly.and the main code is as follows:
libvlc_media_t *m;
const char * const vlc_args[] = {
"-I",
//"dvb-t://frequency=666000", // No special interface
"dumy", "--ignore-config", // Don't use VLC's config
"--plugin-path=./plugins" };
// init vlc modules, should be done only once
pVLCInstance_ = libvlc_new (sizeof(vlc_args) / sizeof(vlc_args[0]), vlc_args);
/* Create a new item */
m = libvlc_media_new_path (pVLCInstance_, "dvb-t://frequency=666000");
/* Create a media player playing environement */
pMediaPlayer_ = libvlc_media_player_new_from_media (m);
// Create a media player playing environement
//pMediaPlayer_ = libvlc_media_player_new(pVLCInstance_);
// Create an event manager for the player for handling e.g. time change events
pEventManager_ = libvlc_media_player_event_manager(pMediaPlayer_);
libvlc_media_player_play (pMediaPlayer_);
with the above codes the ts stream can be played properly. as there are many programs in a ts stream so I want to get the program list. so could you tell me which codes should I add to the above or do you give me some suggestions?
many thanks !!
Dekui