Agora Java API Reference for Android

Static Public Member Functions | Public Attributes | List of all members
io.agora.rte.Constants.PlayerState Enum Reference

## 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

Player states. When the player state changes, the state will be notified through the PlayerObserver.onStateChanged callback.

Since
  v4.4.0

## Member Data Documentation

## ◆ IDLE

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

0: Idle state.

## ◆ OPENING

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

1: Opening state. This state is notified after calling Player.openWithUrl.

## ◆ 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 the url source is playing.

## ◆ 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 url source playback completed

## ◆ 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.