--- title: HTMLMediaElement.paused slug: Web/API/HTMLMediaElement/paused translation_of: Web/API/HTMLMediaElement/paused ---
{{APIRef("HTML DOM")}}

属性(只读)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}}

参考文档