|
Agora Java API Reference for Android
|
The state of the media player. More...
Static Public Member Functions | |
| static int | getValue (PlayerState type) |
| static PlayerState | fromInt (int v) |
Public Attributes | |
| IDLE =(0) | |
| OPENING =(1) | |
| OPEN_COMPLETED =(2) | |
| PLAYING =(3) | |
| PAUSED =(4) | |
| PLAYBACK_COMPLETED =(5) | |
| STOPPED =(6) | |
| FAILED =(7) | |
The state of the media player.
| io.agora.rte.Constants.PlayerState.IDLE =(0) |
0: Idle link state.
| io.agora.rte.Constants.PlayerState.OPENING =(1) |
1: Opening the URL resource. This status code is reported after you call openWithUrl.
| io.agora.rte.Constants.PlayerState.OPEN_COMPLETED =(2) |
2: Successfully opens the URL resource. This status code is reported when openWithUrl successfully opens the URL resource.
| io.agora.rte.Constants.PlayerState.PLAYING =(3) |
3: Playing.
| io.agora.rte.Constants.PlayerState.PAUSED =(4) |
4: Pauses playback. This status code is reported when pause is successfully called.
| io.agora.rte.Constants.PlayerState.PLAYBACK_COMPLETED =(5) |
5: Playback completed.
| io.agora.rte.Constants.PlayerState.STOPPED =(6) |
6: Stop playback. This status code is reported when you successfully call stop.
| io.agora.rte.Constants.PlayerState.FAILED =(7) |
7: Failure state. This status code is reported when an internal error occurs. If you receive this status, you need to first call stop and then call openWithUrl to reopen the resource.
1.8.18