mmr_play()

Updated: April 19, 2023

Start playing

Synopsis:

#include <mm/renderer.h>
int mmr_play(mmr_context_t *ctxt)

Arguments:

ctxt
A context handle

Library:

mmrndclient

Description:

Start playing. A no-op if the context is already playing.

When mm-renderer is playing media, you can adjust the play speed, seek to another position, change playlists, or stop playback.

A speed change may result from an mmr_play() call if the current speed setting is unsupported or forbidden at the current position. The mm-renderer service tries to round the speed to a supported value in the same category (e.g., negative, slow, or fast). A similar speed change may occur during playback if a position is reached (by playing or by an explicit seek request) where the current speed is unacceptable.

Returns:

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