MDN wants to talk to developers like you: https://qsurvey.mozilla.com/s3/8d22564490d8

HTMLMediaElement.paused

属性(只读)HTMLMediaElement.paused 告诉视频是否正在暂停

语法

var isPaused = audioOrVideo.paused

返回值

类型Boolean. true暂停中 false 没有暂停

仅限暂停状态 因网络原因造成的缓冲状态仍然会告诉你不在暂停状态

例子

var obj = document.createElement('video');
console.log(obj.paused); // true

规范

Specification Status Comment
WHATWG HTML Living Standard
HTMLMediaElement.paused
Living Standard No change from HTML5
HTML5
HTMLMediaElement.paused
Recommendation Initial definition.

浏览器兼容性

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)

参考文档

文档标签和贡献者

 此页面的贡献者: haocity
 最后编辑者: haocity,