MediaPlayerState

The playback state.

Enumerator

PLAYER_STATE_UNKNOWN
-1: The player state is unknown.
PLAYER_STATE_IDLE
0: The default state. The media player returns this state code before you open the media resource or after you stop the playback.
PLAYER_STATE_OPENING
1: Opening the media resource.
PLAYER_STATE_OPEN_COMPLETED
2: Opens the media resource successfully.
PLAYER_STATE_PLAYING
3: The media resource is playing.
PLAYER_STATE_PAUSED
4: Pauses the playback.
PLAYER_STATE_PLAYBACK_COMPLETED
5: The current playback has completed, but the repeat count configured with setLoopCount has not been reached. The player continues playback.
PLAYER_STATE_PLAYBACK_ALL_LOOPS_COMPLETED
6: The final playback has completed. This state is also reported when a single playback completes without looping configured.
PLAYER_STATE_STOPPED
7: The playback stops.
PLAYER_STATE_FAILED
100: The media player fails to play the media resource.