mmr_state_t

Updated: May 06, 2022

The context states

Synopsis:

#include <mm/renderer/events.h>
typedef enum mmr_state {
    MMR_STATE_DESTROYED,
    MMR_STATE_IDLE,
    MMR_STATE_STOPPED,
    MMR_STATE_PLAYING
} mmr_state_t;

Data:

MMR_STATE_DESTROYED
The context has been destroyed.
MMR_STATE_IDLE
The context has no input.
MMR_STATE_STOPPED
The context has an input but is not playing.
MMR_STATE_PLAYING
The context is playing or paused.

Library:

mmrndclient

Description:

The mmr_state_t enumerated type defines the context states, which are based on the current input and playback activity. To obtain the context state following the latest API event, call mmr_event_get() and examine the state field in the mmr_event_t structure returned by the function.