Example for dvb with libVLC

This forum is about all development around libVLC.
sundk911
Blank Cone
Blank Cone
Posts: 16
Joined: 03 May 2012 14:44

Example for dvb with libVLC

Postby sundk911 » 08 May 2012 17:02

could you tell me how to get the program list of a ts stream by using vlc ? just like the menu playback---program ?

MichaelMc
Blank Cone
Blank Cone
Posts: 63
Joined: 10 Jun 2009 17:55

Re: Example for dvb with libVLC

Postby MichaelMc » 12 May 2012 21:39

If you mean through libvlc, then it is possible if somewhat non conventional and at a risk of breaking at any point release.

Have a look at vlc_input_item.h and vlc_epg_t then try something along the lines off:

Code: Select all

input_thread_t *p_input = libvlc_get_input_thread(vlc->mp); if (p_input){ input_item_t *p_item = input_GetItem(p_input); if (p_item){ vlc_mutex_lock(&p_item->lock); if (p_item->pp_epg && p_item->i_epg){ .... } vlc_mutex_unlock(&p_item->lock); } vlc_object_release(p_input); }
Should be enough to get you going. Works for me.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 9 guests