mm_player_get_current_track_position()

Get the position of the current track.

Synopsis:

#include <mmplayer/mmplayerclient.h>
 
int mm_player_get_current_track_position( 
                                  mmplayer_hdl_t *hdl,
                                  int *position )

Arguments:

hdl
The mm-player connection handle
position
The current position, in milliseconds from the start of the track

Library:

mmplayerclient

Description:

Get the position of the currently playing or paused track. The call fails if there's no active tracksession or track. We recommend retrieving the current track's position through the event interface instead of using this function.

Returns:

0 on success, -1 on failure