add fastForward

This commit is contained in:
Harvey committed 2022-04-27 13:55:47 +08:00
1 parent 17262ff63d
commit 3b63e1a59b
58 files changed
+309 -150

No files matched your search

+18 -1
View File
@@ -1043,7 +1043,7 @@ var art = new Artplayer({
## lock
- Type: `Boolean`
- Default: `true`
- Default: `false`
Whether to display a lock button on the mobile side to hide the bottom control bar
@@ -1057,6 +1057,23 @@ var art = new Artplayer({
});
```
## fastForward
- Type: `Boolean`
- Default: `false`
Whether to display a fast forward button on the mobile
<div className="run-code">▶ Run Code</div>
```js
var art = new Artplayer({
container: '.artplayer-app',
url: '/assets/sample/video.mp4',
fastForward: true,
});
```
## autoPlayback
- Type: `Boolean`
@@ -1044,7 +1044,7 @@ var art = new Artplayer({
## lock
- 类型: `Boolean`
- 默认: `true`
- 默认: `false`
是否在移动端显示一个锁定按钮,用于隐藏底部控制栏
@@ -1058,6 +1058,23 @@ var art = new Artplayer({
});
```
## fastForward
- 类型: `Boolean`
- 默认: `false`
是否在移动端显示一个快进按钮
<div className="run-code">▶ Run Code</div>
```js
var art = new Artplayer({
container: '.artplayer-app',
url: '/assets/sample/video.mp4',
fastForward: true,
});
```
## autoPlayback
- 类型: `Boolean`