Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
jPlayer 有一个用于移动设备(以及其他设备)的无音量选项。我正在尝试查找如何检查当前播放器是否与此设置匹配?如果播放器在不支持此功能的设备上,我们想添加一个类并更改播放器。
我最终使用这些status信息来确定这一点。作为一个(糟糕的)例子:
status
// initialize the player $('.player').jPlayer({...}); // check if it has volume controls if ($('.player').data('jPlayer').status.noVolume) { // does not have volume controls }