# MEDIA_PLAYER_STATE (/zh-CN/api-reference/rtc/cpp-all-platforms/enum-mediaplayerstate)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
## 枚举值 [#枚举值]
(0):默认状态。媒体播放器在打开媒体资源前或停止播放后处于该状态。
(1):正在打开媒体资源。
(2):已成功打开媒体资源。
(3):媒体资源正在播放中。
(4):播放已暂停。
(5):播放已完成。
(6):循环播放已完成。
(7):播放已停止。
(100):媒体播放器播放媒体资源失败。