mmr_seek()

Seek to a position.

Synopsis:

#include <mm/renderer.h>
int mmr_seek( mmr_context_t *ctxt, 
              const char *position )

Arguments:

ctxt
A context handle.
position
The position to seek to, in a media-specific format.

Library:

mmrndclient

Description:

Seek to a known position in a single track or a track within a playlist.

The required format of the position string depends on the attached input. For the track type, the position is simply the track position in milliseconds (for example, "2500"). For the playlist type, the position must be specified as two decimal numbers separated by a colon (such as "2:1200"), where the first number is the playlist index and the second number is the number of milliseconds from the beginning of the specified playlist item. For the autolist type, in which a single track is formatted as a playlist, you must use the playlist string format and set the first number to "1".

Returns:

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

Classification:

QNX Neutrino

Safety:  
Interrupt handler No
Signal handler No
Thread Yes