mm_player_get_current_track_info()

Get information on the current track.

Synopsis:

#include <mmplayer/mmplayerclient.h>
 
int mm_player_get_current_track_info( 
                        mmplayer_hdl_t *hdl, 
                        mmp_track_info_t **track_info )

Arguments:

hdl
The mm-player connection handle
track_info
Information on the current track

Library:

mmplayerclient

Description:

Get information on the current track, which is the track either actively being played or selected to be played next. This information includes the track's metadata and its index (i.e., playback position) in the active tracksession. Client applications can then refresh their HMI display and deliver this up-to-date media information to users.

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

Returns:

0 on success, -1 on failure