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:

Jump 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 may first check the value of the seek_fast field in the mmplaylist_props_t structure to determine whether this operation can be completed quickly or not.

Returns:

0 on success

-1 on error (use mmplaylist_last_error_get() to get error information)