Player events. When an event occurs, it will be notified through the PlayerObserver.onEvent callback.
- Since
- v4.4.0
◆ SEEK_BEGIN
io.agora.rte.Constants.PlayerEvent.SEEK_BEGIN =(0) |
0: Start seeking to a specified position for playback.
◆ SEEK_COMPLETE
io.agora.rte.Constants.PlayerEvent.SEEK_COMPLETE =(1) |
◆ SEEK_ERROR
io.agora.rte.Constants.PlayerEvent.SEEK_ERROR =(2) |
2: An error occurs when seeking to a new playback position.
◆ BUFFER_LOW
io.agora.rte.Constants.PlayerEvent.BUFFER_LOW =(3) |
3: The currently buffered data is not enough to support playback.
◆ BUFFER_RECOVER
io.agora.rte.Constants.PlayerEvent.BUFFER_RECOVER =(4) |
4: The currently buffered data is just enough to support playback.
◆ FREEZE_START
io.agora.rte.Constants.PlayerEvent.FREEZE_START =(5) |
5: Audio or video playback starts freezing.
◆ FREEZE_STOP
io.agora.rte.Constants.PlayerEvent.FREEZE_STOP =(6) |
6: The audio or video playback resumes without freezing.
◆ ONE_LOOP_PLAYBACK_COMPLETED
io.agora.rte.Constants.PlayerEvent.ONE_LOOP_PLAYBACK_COMPLETED =(7) |
7: One loop playback completed.
◆ AUTHENTICATION_WILL_EXPIRE
io.agora.rte.Constants.PlayerEvent.AUTHENTICATION_WILL_EXPIRE =(8) |
8: URL authentication will expire.
◆ ABR_FALLBACK_TO_AUDIO_ONLY_LAYER
io.agora.rte.Constants.PlayerEvent.ABR_FALLBACK_TO_AUDIO_ONLY_LAYER =(9) |
9: When the fallback option is enabled, ABR revert to the audio-only layer due to poor network.
◆ ABR_RECOVER_FROM_AUDIO_ONLY_LAYER
io.agora.rte.Constants.PlayerEvent.ABR_RECOVER_FROM_AUDIO_ONLY_LAYER =(10) |
10: ABR recovers from audio-only layer to video layer when fallback option is enabled.