Add unescape utility function and

artplayerPluginMultipleSubtitles plugin
This commit is contained in:
Harvey Zack committed 2023-11-23 23:23:51 +08:00
1 parent 3db53c425e
commit 89b8525f2f
47 files changed
+2982 -75

No files matched your search

@@ -107,23 +107,6 @@ art.on('restart', (url) => {
});
```
## `loop`
当出现区间循环时触发
<div className="run-code">▶ Run Code</div>
```js{6}
var art = new Artplayer({
container: '.artplayer-app',
url: '/assets/sample/video.mp4',
});
art.on('loop', (start, end) => {
console.info('loop', start, end);
});
```
## `pause`
当播放器暂停时触发
@@ -661,36 +661,6 @@ art.on('ready', () => {
});
```
## `loop`
- Type: `Setter/Getter`
- Parameter: `Array`
Set and obtain interval sequential playback in seconds
<div className="run-code">▶ Run Code</div>
```js{8}
var art = new Artplayer({
container: '.artplayer-app',
url: '/assets/sample/video.mp4',
});
art.on('ready', () => {
console.info(art.loop);
art.loop = [5, 10];
console.info(art.loop);
});
```
:::warning Tip
To delete interval looping, just set `loop` to `[]`
`art.loop` and `art.option.loop` aer two different things, please don't mix them up
:::
## `autoHeight`
- Type: `Setter/Getter`