Type-specific mm-player event details.
#include <mmplayer/event.h>
union mmp_event_details {
struct mmp_event_state {
status_e oldstatus;
float oldrate;
repeat_e oldrepeat;
shuffle_e oldshuffle;
} state;
struct mmp_event_trksession {
trksession_event_e type;
int length;
uint64_t tsid;
} trksession;
struct mmp_event_error {
ms_error_e type;
} error;
struct mmp_event_track {
int index;
uint64_t tsid;
mmp_ms_node_t *media_node;
mmp_ms_node_metadata_t *metadata;
} track;
struct mmp_event_trkpos {
int position;
} trkpos;
struct mmp_event_mediasource {
ms_event_e type;
mmp_ms_t *mediasource;
} mediasource_info;
} details;
The mmp_event_state structure has these members:
The mmp_event_trksession structure has these members:
The mmp_event_error structure has these members:
The mmp_event_track structure has these members:
The mmp_event_trkpos structure has these members:
The mmp_event_mediasource structure has these members:
Type-specific mm-player event details. Only one structure within the details field can be defined at a time. The structure that's defined depends on the event type. Applications must read the mmp_event.type field to learn the event type so they can properly parse the contents of the details field.