mm_player_get_media_sources()

Get information on all connected media sources.

Synopsis:

#include <mmplayer/mmplayerclient.h>
 
int mm_player_get_media_sources( mmplayer_hdl_t *hdl, 
                                 mmp_ms_t **media_sources, 
                                 int *len )

Arguments:

hdl
The mm-player connection handle
media_sources
An array containing the connected media sources
len
The array size

Library:

mmplayerclient

Description:

Get information on all media sources connected to the system. The library allocates memory for the array that gets stored in media_sources but it's the caller's responsibility to later deallocate that memory. Each array element stores information on a single media source. This information includes the media source's name, hardware type, and supported browsing and playback operations. Client applications can display this information in the HMI to provide users with data describing the accessible media devices.

Returns:

0 on success, -1 on failure