Video paused 属性
Video 对象
实例
查看视频是否已暂停:
var x = document.getElementById("myVideo").paused;
x 输出结果为:
true
定义和用法
paused 属性返回视频是否已暂停。
注意: 该属性为只读属性。
浏览器支持
![Internet Explorer Internet Explorer](../images/compatible_ie.gif)
![Firefox Firefox](../images/compatible_firefox.gif)
![Opera Opera](../images/compatible_opera.gif)
![Google Chrome Google Chrome](../images/compatible_chrome.gif)
![Safari Safari](../images/compatible_safari.gif)
所有主流浏览器都支持 paused 属性
注意: Internet Explorer 8 或更早的浏览器不支持该属性。
语法
技术细节
返回值: |
布尔值,如果视频已暂停返回 true,否则为 false |
Video 对象