--- title: HTMLMediaElement.paused slug: Web/API/HTMLMediaElement/paused translation_of: Web/API/HTMLMediaElement/paused ---
属性(只读)HTMLMediaElement.paused
告诉视频是否正在暂停
var isPaused = audioOrVideo.paused
类型{{domxref("Boolean")}}. true暂停中
false
没有暂停
仅限暂停状态 因网络原因造成的缓冲状态仍然会告诉你不在暂停状态
var obj = document.createElement('video'); console.log(obj.paused); // true
Specification | Status | Comment |
---|---|---|
{{SpecName('HTML WHATWG', "the-video-element.html#htmlmediaelement", "HTMLMediaElement.paused")}} | {{Spec2('HTML WHATWG')}} | No change from {{SpecName('HTML5 W3C')}} |
{{SpecName('HTML5 W3C', "embedded-content-0.html#htmlmediaelement", "HTMLMediaElement.paused")}} | {{Spec2('HTML5 W3C')}} | Initial definition. |
{{ CompatibilityTable() }}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}} | {{CompatGeckoDesktop("1.9.1")}} [1] | {{CompatIE("9")}} | {{CompatUnknown}} | {{CompatUnknown}} |
Feature | Android | Firefox Mobile (Gecko) | Firefox OS (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} |