next()

Skip to the next track in the tracksession.

Synopsis:

#include <qplayer/qplayer.h>

void next();

Description:

Skip to the next track in the tracksession. The track considered the "next track" depends on the shuffle and repeat settings.

When the repeat mode is REPEAT_ONE or REPEAT_OFF, the next track is the track immediately following the current track in either the sequential playback list (if shuffling is off) or in the randomized list (if shuffling is on). If the current track is the last track in the list, playback stops (because there's no next track).

When the repeat mode is REPEAT_ALL, the function behaves similarly except that if the current track is the last track, the next track is the first track in the list (because playback is looped).