mmplaylist_current_pos_set()

Jump to a position in the playlist

Synopsis:

#include <mm/mmplaylist.h>
int mmplaylist_current_pos_set( mmplaylist_t *pl, 
                                int new_pos, 
                                mmplaylist_seek_offset_t whence )

Arguments:

pl
A valid session handle.
new_pos
The new position in the playlist to jump to. Negative numbers are allowed for moving backwards.
whence
The reference point for the new position (see mmplaylist_seek_offset_t for the list of acceptable values).

Library:

libmmplaylist

Description:

This function jumps to a position in the playlist. The new position is specified as the index of the entry that you're seeking to. This operation can be very expensive, so the application should first check the value of the seek_fast field in the mmplaylist_props_t structure to determine whether this operation can be completed quickly.

Returns:

0
Success.
-1
An error occurred (call mmplaylist_last_error_get() for details).