MEDIA_PLAYER_EVENT

Media player events.

Enumerator

PLAYER_EVENT_SEEK_BEGIN
0: The player begins to seek to a new playback position.
PLAYER_EVENT_SEEK_COMPLETE
1: The player finishes seeking to a new playback position.
PLAYER_EVENT_SEEK_ERROR
2: An error occurs when seeking to a new playback position.
PLAYER_EVENT_AUDIO_TRACK_CHANGED
5: The audio track used by the player has been changed.
PLAYER_EVENT_BUFFER_LOW
6: The currently buffered data is not enough to support playback.
PLAYER_EVENT_BUFFER_RECOVER
7: The currently buffered data is just enough to support playback.
PLAYER_EVENT_FREEZE_START
8: The audio or video playback freezes.
PLAYER_EVENT_FREEZE_STOP
9: The audio or video playback resumes without freezing.
PLAYER_EVENT_SWITCH_BEGIN
10: The player starts switching the media resource.
PLAYER_EVENT_SWITCH_COMPLETE
11: Media resource switching is complete.
PLAYER_EVENT_SWITCH_ERROR
12: Media resource switching error.
PLAYER_EVENT_FIRST_DISPLAYED
13: The first video frame is rendered.
PLAYER_EVENT_REACH_CACHE_FILE_MAX_COUNT
14: The cached media files reach the limit in number.
PLAYER_EVENT_REACH_CACHE_FILE_MAX_SIZE
15: The cached media files reach the limit in aggregate storage space.