gpt4 book ai didi

javascript - Wimpy Player - 检查玩家是否在玩

转载 作者:行者123 更新时间:2023-12-02 16:54:26 25 4
gpt4 key购买 nike

如何检查 Wimpy 播放器是否正在播放?我可以在 API 中看到有一个 getStatus() 函数,但我不确定如何使用来确定玩家是否正在玩:

http://www.wimpyplayer.com/docs/api/getStatus.html

最佳答案

来自您提供的链接 http://www.wimpyplayer.com/docs/api/getStatus.html

getStatus()
The follow displays the data contained in the returned object

status Indicates if paused (0) or playing (1)

示例

if (myPlayer.getStatus().status) {
// playing
}
else {
// not playing
}

关于javascript - Wimpy Player - 检查玩家是否在玩,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26290547/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com