mmr_speed_set()

Set the play speed

Synopsis:

#include <renderer.h>

int mmr_speed_set( mmr_context_t *ctxt,
                   int speed );

Arguments:

ctxt
A context handle.
speed
The new play speed, in units of 1/1000 of normal speed. For example, for normal speed, specify 1000; for half of normal speed, specify 500.

Library:

mmrndclient

Description:

The function mmr_speed_set() sets the play speed of the input media of the specified context. Specify the play speed in units of 1/1000 of normal speed. Use a speed of 0 (zero) to pause playback. Depending on the context's input media, trick-play speeds (such as negative, slower than normal or faster than normal) may not be supported. For more information, see Playing media .

Returns:

0
Success.
-1
An error occurred. Use the function mmr_error_info() to retrieve information about the error.

Classification:

QNX Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread Yes