mm_player_play()

Start playback.

Synopsis:

#include <mmplayer/mmplayerclient.h>
 
int mm_player_play( mmplayer_hdl_t *hdl )

Arguments:

hdl
The mm-player connection handle

Library:

mmplayerclient

Description:

Start playback. This function changes the player status to STATUS_PLAYING. This status setting remains in effect until you pause or stop playback, or the end of the tracksession is reached and repeating is disabled.

The track that begins playing is the one selected as the "current" track in the active tracksession. When this track finishes playing, the player chooses a new track to play based on the shuffle and repeat mode settings. For more details, see mm_player_repeat() and mm_player_shuffle().

At any time during playback, you can seek to a new position in the current track by calling mm_player_seek() or change the current track by calling mm_player_jump().

Returns:

0 on success, -1 on failure