属性(只读)HTMLMediaElement.paused
告诉视频是否正在暂停
语法
var isPaused = audioOrVideo.paused
返回值
类型Boolean
. true暂停中
false
没有暂停
仅限暂停状态 因网络原因造成的缓冲状态仍然会告诉你不在暂停状态
例子
var obj = document.createElement('video');
console.log(obj.paused); // true
规范
Specification | Status | Comment |
---|---|---|
HTML Living Standard HTMLMediaElement.paused |
Living Standard | No change from HTML5 |
HTML5 HTMLMediaElement.paused |
Recommendation | Initial definition. |
浏览器兼容性
We're converting our compatibility data into a machine-readable JSON format.
This compatibility table still uses the old format,
because we haven't yet converted the data it contains.
Find out how you can help!
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | (Yes) | 3.5 (1.9.1) [1] | 9 | ? | ? |
Feature | Android | Firefox Mobile (Gecko) | Firefox OS (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | (Yes) | (Yes) | (Yes) | ? | (Yes) | (Yes) |
参考文档
- The interface defining it,
HTMLMediaElement
.