# PlayerState (/zh-CN/api-reference/rtc/android/4.6.0/class-and-enum/enums/enum-rteplayerstate)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
### `自从` [#自从]
自 v4.4.0 版本新增。
## 枚举值 [#枚举值]
### `IDLE` [#idle]
(0):空闲状态。
### `OPENING` [#opening]
(1):正在打开 URL 资源。调用 [openWithUrl](/zh-CN/api-reference/rtc/android/playback/rte-player#api_player_openwithurl) 后会返回该状态码。
### `OPEN_COMPLETED` [#open_completed]
(2):已成功打开 URL 资源。 [openWithUrl](/zh-CN/api-reference/rtc/android/playback/rte-player#api_player_openwithurl) 成功打开资源后会返回该状态码。
### `PLAYING` [#playing]
(3):正在播放。
### `PAUSED` [#paused]
(4):播放已暂停。成功调用 [pause](/zh-CN/api-reference/rtc/android/playback/rte-player#api_player_pause_player) 后会返回该状态码。
### `PLAYBACK_COMPLETED` [#playback_completed]
(5):播放已完成。
### `STOPPED` [#stopped]
(6):播放已停止。成功调用 [stop](/zh-CN/api-reference/rtc/android/playback/rte-player#api_player_stop_player) 后会返回该状态码。
### `FAILED` [#failed]
(7):播放失败。发生内部错误时会返回该状态码。收到该状态后需先调用 [stop](/zh-CN/api-reference/rtc/android/playback/rte-player#api_player_stop_player),再调用 [openWithUrl](/zh-CN/api-reference/rtc/android/playback/rte-player#api_player_openwithurl) 重新打开资源。