Agora Java API Reference for Android
Static Public Member Functions | Public Attributes | List of all members
io.agora.rte.Constants.PlayerState Enum Reference

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)
 

Detailed Description

The state of the media player.

Since
v4.4.0

Member Data Documentation

◆ IDLE

io.agora.rte.Constants.PlayerState.IDLE =(0)

0: Idle link state.

◆ OPENING

io.agora.rte.Constants.PlayerState.OPENING =(1)

1: Opening the URL resource. This status code is reported after you call openWithUrl.

◆ OPEN_COMPLETED

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.

◆ PLAYING

io.agora.rte.Constants.PlayerState.PLAYING =(3)

3: Playing.

◆ PAUSED

io.agora.rte.Constants.PlayerState.PAUSED =(4)

4: Pauses playback. This status code is reported when pause is successfully called.

◆ PLAYBACK_COMPLETED

io.agora.rte.Constants.PlayerState.PLAYBACK_COMPLETED =(5)

5: Playback completed.

◆ STOPPED

io.agora.rte.Constants.PlayerState.STOPPED =(6)

6: Stop playback. This status code is reported when you successfully call stop.

◆ FAILED

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.