Player states. When the player state changes, the state will be notified through the PlayerObserver.onStateChanged callback.
- Since
- v4.4.0
◆ IDLE
io.agora.rte.Constants.PlayerState.IDLE =(0) |
◆ OPENING
io.agora.rte.Constants.PlayerState.OPENING =(1) |
◆ OPEN_COMPLETED
io.agora.rte.Constants.PlayerState.OPEN_COMPLETED =(2) |
2: Open completed state. This state is notified after successfully calling Player.openWithUrl.
◆ PLAYING
io.agora.rte.Constants.PlayerState.PLAYING =(3) |
3: Playing state. This state is notified when audience members successfully subscribe to the broadcaster after opening an RTE URL.
◆ PAUSED
io.agora.rte.Constants.PlayerState.PAUSED =(4) |
4: Paused state. This state is notified when playback is paused.
◆ PLAYBACK_COMPLETED
io.agora.rte.Constants.PlayerState.PLAYBACK_COMPLETED =(5) |
5: Playback completed state. This state is notified when the broadcaster stops streaming and leaves the live streaming room after playing the rte URL
◆ STOPPED
io.agora.rte.Constants.PlayerState.STOPPED =(6) |
6: Stopped state. This state is entered after the user calls player.stop.
◆ FAILED
io.agora.rte.Constants.PlayerState.FAILED =(7) |
7: Failed state. This state is entered when an internal error occurs.