mmr_speed_set()

Set the play speed

Synopsis:

#include <mm/renderer.h>
int mmr_speed_set(mmr_context_t *ctxt,
                  int speed)

Arguments:

ctxt
A context handle
speed
The new speed, in units of 1/1000 of normal speed

Library:

mmrndclient

Description:

Set the play speed, in units of 1/1000 of normal speed. If the context is playing (including if it's paused), the new speed is applied immediately. If the context is stopped, the speed setting is stored in the context and applied the next time mmr_play() is called.

Use a speed of 0 to pause playback. Depending on the input media, trick play, which entails playing at speeds other than normal speed (1000), may be unsupported or forbidden, either completely or only for some portions of the media.

Returns:

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