QVisu
Qt-based visualization for smart homes
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
LibVLC media discovery

Typedefs

typedef struct
libvlc_media_discoverer_t 
libvlc_media_discoverer_t
 

Functions

LIBVLC_API
libvlc_media_discoverer_t * 
libvlc_media_discoverer_new_from_name (libvlc_instance_t *p_inst, const char *psz_name)
 
LIBVLC_API void libvlc_media_discoverer_release (libvlc_media_discoverer_t *p_mdis)
 
LIBVLC_API char * libvlc_media_discoverer_localized_name (libvlc_media_discoverer_t *p_mdis)
 
LIBVLC_API libvlc_media_list_t * libvlc_media_discoverer_media_list (libvlc_media_discoverer_t *p_mdis)
 
LIBVLC_API libvlc_event_manager_tlibvlc_media_discoverer_event_manager (libvlc_media_discoverer_t *p_mdis)
 
LIBVLC_API int libvlc_media_discoverer_is_running (libvlc_media_discoverer_t *p_mdis)
 

Detailed Description

LibVLC media discovery finds available media via various means. This corresponds to the service discovery functionality in VLC media player. Different plugins find potential medias locally (e.g. user media directory), from peripherals (e.g. video capture device), on the local network (e.g. SAP) or on the Internet (e.g. Internet radios).

Function Documentation

LIBVLC_API libvlc_event_manager_t* libvlc_media_discoverer_event_manager ( libvlc_media_discoverer_t *  p_mdis)

Get event manager from media service discover object.

Parameters
p_mdismedia service discover object
Returns
event manager object.
LIBVLC_API int libvlc_media_discoverer_is_running ( libvlc_media_discoverer_t *  p_mdis)

Query if media service discover object is running.

Parameters
p_mdismedia service discover object
Returns
true if running, false if not
LIBVLC_API char* libvlc_media_discoverer_localized_name ( libvlc_media_discoverer_t *  p_mdis)

Get media service discover object its localized name.

Parameters
p_mdismedia discover object
Returns
localized name
LIBVLC_API libvlc_media_list_t* libvlc_media_discoverer_media_list ( libvlc_media_discoverer_t *  p_mdis)

Get media service discover media list.

Parameters
p_mdismedia service discover object
Returns
list of media items
LIBVLC_API libvlc_media_discoverer_t* libvlc_media_discoverer_new_from_name ( libvlc_instance_t p_inst,
const char *  psz_name 
)

Discover media service by name.

Parameters
p_instlibvlc instance
psz_nameservice name
Returns
media discover object or NULL in case of error
LIBVLC_API void libvlc_media_discoverer_release ( libvlc_media_discoverer_t *  p_mdis)

Release media discover object. If the reference count reaches 0, then the object will be released.

Parameters
p_mdismedia service discover object