mme_seektotime()

Seek to a time in a playing track

Synopsis:

#include <mme/mme.h>

int mme_seektotime( mme_hdl_t *hdl,
                    int time );

Arguments:

hdl
An MME connection handle.
time
The time you want to seek to, in milliseconds.

Library:

mme

Description:

The function mme_seektotime() seeks to a specific time (expressed in milliseconds from the start of the track) in the current track. The track must be playing for the seek to work.

If time is greater than the total time for the currently playing track, behavior varies, depending on the media, as follows:

Events

None delivered.

Blocking and validation

This function blocks on control contexts. If mme_seektotime() is called and another function is called before mme_seektotime() returns, the second function blocks on io-media until mme_seektotime() returns. If there are no other pending calls, mme_seektotime() returns without blocking on io-media.

Returns:

0
Success.
-1
An error occurred (errno is set).

Classification:

QNX Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

mme_connect(), mme_next(), mme_play()