HTMLMediaElement.pause()

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

HTMLMediaElement.pause() 方法可用来暂停媒体的播放,如果媒体已经处于暂停状态,该方法没有效果。

语法

HTMLMediaElement.pause()

参数

无。

返回值

无。

异常

无。

Specifications

Specification
HTML Standard
# dom-media-pause-dev

浏览器兼容性

BCD tables only load in the browser