HTML DOM 中的Video paused 属性用于返回视频是否暂停。它是只读属性。
句法:
videoObject.paused
返回:如果视频暂停,则视频暂停属性返回布尔值 true,否则返回 false。
下面的程序说明了 HTML DOM 中的视频暂停属性:
例子:
Video paused Property
GeeksforGeeks
Video paused Property
For knowing whether the video is paused or not,
double click the "Return Pause State" button.
输出:
- 点击按钮前:
- 点击按钮后:
支持的浏览器:视频暂停属性支持的浏览器如下:
- 谷歌浏览器
- 浏览器 9.0
- 火狐
- 歌剧
- 苹果Safari