HTML DOM Video paused 属性
最后更新于:2022-03-27 00:11:58
Video paused 属性
Video 对象
实例
查看视频是否已暂停:
var x = document.getElementById(“myVideo”).paused;
x 输出结果为:
true
尝试一下 »
定义和用法
paused 属性返回视频是否已暂停。
注意: 该属性为只读属性。
浏览器支持





所有主流浏览器都支持 paused 属性
注意: Internet Explorer 8 或更早的浏览器不支持该属性。
语法
技术细节
返回值: |
布尔值,如果视频已暂停返回 true,否则为 false |
Video 对象