PlayerEvent
Media player event types.
- Since
- Available since v4.4.0.
Enumerations
- SEEK_BEGIN
- (0): Start seeking to the specified playback position.
- SEEK_COMPLETE
- (1): Completed seeking to the specified playback position.
- SEEK_ERROR
- (2): Error occurred while seeking to the specified playback position.
- BUFFER_LOW
- (3): Insufficient buffer data to support playback.
- BUFFER_RECOVER
- (4): Buffer data is just enough to support playback.
- FREEZE_START
- (5): Audio or video stuttering occurred.
- FREEZE_STOP
- (6): Audio or video stuttering ended.
- ONE_LOOP_PLAYBACK_COMPLETED
- (7): One loop of playback completed.
- AUTHENTICATION_WILL_EXPIRE
- (8): Token is about to expire. After receiving this event, you need to generate a new Token and update the URL via openWithUrl.
- ABR_FALLBACK_TO_AUDIO_ONLY_LAYER
- (9): Due to network issues, downgraded from receiving audio and video streams to receiving only remote audio stream.
- ABR_RECOVER_FROM_AUDIO_ONLY_LAYER
- (10): After network recovery, resumed receiving audio and video streams from only receiving remote audio stream.
- SWITCH_BEGIN
- (11): Start switching to a new URL.
- SWITCH_COMPLETE
- (12): Completed switching to the new URL.
- SWITCH_ERROR
- (13): Error occurred while switching to the new URL.
- FIRST_DISPLAYED
- (14): First video frame displayed.
- REACH_CACHE_FILE_MAX_COUNT
- (15): Maximum number of cache files reached.
- REACH_CACHE_FILE_MAX_SIZE
- (16): Maximum cache file size reached.
- TRY_OPEN_START
- (17): Start trying to open a new URL.
- TRY_OPEN_SUCCEED
- (18): Successfully opened the new URL.
- TRY_OPEN_FAILED
- (19): Failed to open the new URL.
- AUDIO_TRACK_CHANGED
- (20): The current audio track has changed.