VLC 4.0.0-dev
|
Macros | |
#define | VLC_RENDERER_CAN_AUDIO 0x0001 |
#define | VLC_RENDERER_CAN_VIDEO 0x0002 |
Functions | |
vlc_renderer_item_t * | vlc_renderer_item_new (const char *psz_type, const char *psz_name, const char *psz_uri, const char *psz_extra_sout, const char *psz_demux_filter, const char *psz_icon_uri, int i_flags) |
Create a new renderer item. | |
vlc_renderer_item_t * | vlc_renderer_item_hold (vlc_renderer_item_t *p_item) |
Hold a renderer item, i.e. | |
void | vlc_renderer_item_release (vlc_renderer_item_t *p_item) |
Releases a renderer item, i.e. | |
const char * | vlc_renderer_item_name (const vlc_renderer_item_t *p_item) |
Get the human readable name of a renderer item. | |
const char * | vlc_renderer_item_type (const vlc_renderer_item_t *p_item) |
Get the type (not translated) of a renderer item. | |
const char * | vlc_renderer_item_demux_filter (const vlc_renderer_item_t *p_item) |
Get the demux filter to use with a renderer item. | |
const char * | vlc_renderer_item_sout (const vlc_renderer_item_t *p_item) |
Get the sout command of a renderer item. | |
const char * | vlc_renderer_item_icon_uri (const vlc_renderer_item_t *p_item) |
Get the icon uri of a renderer item. | |
int | vlc_renderer_item_flags (const vlc_renderer_item_t *p_item) |
Get the flags of a renderer item. | |
#define VLC_RENDERER_CAN_AUDIO 0x0001 |
#define VLC_RENDERER_CAN_VIDEO 0x0002 |
const char * vlc_renderer_item_demux_filter | ( | const vlc_renderer_item_t * | p_item | ) |
Get the demux filter to use with a renderer item.
References vlc_renderer_item_t::psz_demux_filter.
Referenced by Control(), and InputSourceInit().
int vlc_renderer_item_flags | ( | const vlc_renderer_item_t * | p_item | ) |
Get the flags of a renderer item.
References vlc_renderer_item_t::i_flags.
vlc_renderer_item_t * vlc_renderer_item_hold | ( | vlc_renderer_item_t * | p_item | ) |
Hold a renderer item, i.e.
creates a new reference
References vlc_renderer_item_t::rc, and vlc_atomic_rc_inc().
Referenced by Control(), input_Create(), and vlc_player_SetRenderer().
const char * vlc_renderer_item_icon_uri | ( | const vlc_renderer_item_t * | p_item | ) |
Get the icon uri of a renderer item.
References vlc_renderer_item_t::psz_icon_uri.
const char * vlc_renderer_item_name | ( | const vlc_renderer_item_t * | p_item | ) |
Get the human readable name of a renderer item.
References vlc_renderer_item_t::psz_name.
vlc_renderer_item_t * vlc_renderer_item_new | ( | const char * | psz_type, |
const char * | psz_name, | ||
const char * | psz_uri, | ||
const char * | psz_extra_sout, | ||
const char * | psz_demux_filter, | ||
const char * | psz_icon_uri, | ||
int | i_flags | ||
) |
Create a new renderer item.
psz_type | type of the item |
psz_name | name of the item |
psz_uri | uri of the renderer item, must contains a valid protocol and a valid host |
psz_extra_sout | extra sout options |
psz_demux_filter | demux filter to use with the renderer |
psz_icon_uri | icon uri of the renderer item |
i_flags | flags for the item |
References asprintf(), vlc_renderer_item_t::i_flags, vlc_url_t::i_port, item_free(), vlc_renderer_item_t::psz_demux_filter, vlc_url_t::psz_host, vlc_renderer_item_t::psz_icon_uri, vlc_renderer_item_t::psz_name, psz_name, vlc_url_t::psz_protocol, vlc_renderer_item_t::psz_sout, vlc_renderer_item_t::psz_type, vlc_renderer_item_t::rc, strdup(), unlikely, vlc_atomic_rc_init(), vlc_UrlClean(), and vlc_UrlParse().
void vlc_renderer_item_release | ( | vlc_renderer_item_t * | p_item | ) |
Releases a renderer item, i.e.
decrements its reference counter
References item_free(), vlc_renderer_item_t::rc, and vlc_atomic_rc_dec().
Referenced by Control(), ControlRelease(), Destroy(), vlc_player_Delete(), and vlc_player_SetRenderer().
const char * vlc_renderer_item_sout | ( | const vlc_renderer_item_t * | p_item | ) |
Get the sout command of a renderer item.
References vlc_renderer_item_t::psz_sout.
Referenced by InitSout().
const char * vlc_renderer_item_type | ( | const vlc_renderer_item_t * | p_item | ) |
Get the type (not translated) of a renderer item.
For now, the type can only be "chromecast" ("upnp", "airplay" may come later).
References vlc_renderer_item_t::psz_type.