mmr_seek()

Seek to a position.

Synopsis:

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

Since:

BlackBerry 10.0.0

Arguments:

ctxt

A context handle.

position

The position to seek to, in a media-specific format.

Library:

libmmrndclient (For the qcc command, use the -l mrndclient option to link against this library)

Description:

Seek to a known position in the currently attached input. The required format of the position string depends on the type of the attached input.

For the track type, the position is simply the number of milliseconds from the start of the track (for example, "2500").

For the playlist and autolist types, the position must be specified as two numbers separated by a colon (for example, "2:1200"), where the first number is the track index within the playlist and the second number is the number of milliseconds from the start of the track. The first number must be 1 for an autolist input.

Returns:

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

Last modified: 2014-09-30



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus