mm_player_get_metadata()

Get metadata associated with a media node.

Synopsis:

#include <mmplayer/mmplayerclient.h>
 
int mm_player_get_metadata( mmplayer_hdl_t *hdl, 
                        const int media_source_id, 
                        const char *media_node_id, 
                        mmp_ms_node_metadata_t **metadata )

Arguments:

hdl
The mm-player connection handle
media_source_id
The media source ID
media_node_id
The media node ID
metadata
The metadata associated with the media node

Library:

mmplayerclient

Description:

Get metadata associated with the media node specified by media_node_id and located on the media source identified by media_source_id. The media node must be a leaf node, that is, not a folder. The metadata retrieved includes track creation and playback details, which client applications can display in the HMI to provide users with useful media information.

The library allocates memory for the structure referenced in metadata but it's the caller's responsibility to later deallocate that memory.

Returns:

0 on success, -1 on failure