mmr_list_change()

Set a new playlist

Synopsis:

#include <mm/renderer.h>
int mmr_list_change(mmr_context_t *ctxt,
                    const char *url,
                    int delta)

Arguments:

ctxt
A context handle
url
The URL of a new playlist
delta
The difference in the current track's position in the two lists

Library:

mmrndclient

Description:

Set a new playlist without interrupting playback. This function can be used only during playback of a playlist (including when it's paused, but not stopped).

The new playlist must contain the currently playing track at position n+delta, where n is its position on the old playlist and delta is the difference in its position in the two lists. This last value is signed, so it can be negative.

Returns:

Zero on success, -1 on failure (use mmr_error_info())