The mm-player event information.
#include <mmplayer/event.h> typedef struct mmp_event { mmp_event_type_e type; repeat_e repeat; shuffle_e shuffle; status_e status; float rate; union mmp_event_details details; const strm_dict_t *data; const char *objname; void *usrdata; } mmp_event_t;
The mmp_event_t structure is returned by mmp_event_get() and stores information on the latest event. For all events, the structure contains the event type and the latest player state information (e.g., repeat mode, playback status). For all event types except MMP_EVENT_NONE and MMP_EVENT_OTHER, the structure contains additional, type-specific information in the details and data fields. For instance, for MMP_EVENT_MEDIASOURCE events, each of these fields stores the type of the media source event (e.g., a media source connection or a disconnection) and information on the media source affected by the event.