PlayerState
The playback state.
- Since
- v4.5.0
Enumerator
- IDLE
- 0: Idle.
- OPENING
- 1: Opening URL resource. This state code is reported when openWithUrl is called.
- OPEN_COMPLETED
- 2: Successfully opened URL resource. This state code is reported when openWithUrl successfully opens the URL resource.
- PLAYING
- 3: Currently playing.
- PAUSED
- 4: Playback paused. This state code is reported when pause is successfully called.
- PLAYBACK_COMPLETED
- 5: Playback completed. This state code is reported when the host ends the stream and exits the room.
- STOPPED
- 6: Playback stopped. This state code is reported when stop is successfully called.
- FAILED
- 7: Failed. This state code is reported when an internal error occurs. If you receive this state, you should first call stop and then call openWithUrl to reopen the resource.