mm_player_repeat()

Set the repeat mode.

Synopsis:

#include <mmplayer/mmplayerclient.h>
 
int mm_player_repeat( mmplayer_hdl_t *hdl, 
                      const repeat_e mode )

Arguments:

hdl
The mm-player connection handle
mode
The new repeat mode setting

Library:

mmplayerclient

Description:

Set the repeat mode. This function allows you to repeatedly play an individual track or a sequence of tracks.

The REPEAT_ONE repeat mode causes the player to play the same track continuously until you either stop playback or skip to another track. A repeat mode of REPEAT_ALL makes the player play all the tracks in the active tracksession and then loop back to the beginning of the tracksession. The playback order is either sequential (when shuffling is off) or random (when shuffling is on). If the repeat mode is REPEAT_OFF, the player plays all the tracks exactly once but stops when it reaches the end of the tracksession.

By default, repeating is disabled, meaning the repeat mode is REPEAT_OFF when a player is created.

Returns:

0 on success, -1 on failure