mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 17:01:20 -08:00
docs: add missing code block closures in documentation files
This commit is contained in:
1 parent
a516c0b204
commit
0044053348
5 files changed
+7
-1
No files matched your search
@@ -227,6 +227,7 @@ art.on('ready', () => {
|
|||||||
art.layers.show = false;
|
art.layers.show = false;
|
||||||
}, 1000);
|
}, 1000);
|
||||||
});
|
});
|
||||||
|
```
|
||||||
|
|
||||||
:::warning For `Component Configuration`, please refer to:
|
:::warning For `Component Configuration`, please refer to:
|
||||||
|
|
||||||
|
|||||||
@@ -245,6 +245,7 @@ var art = new Artplayer({
|
|||||||
art.on('click', (event) => {
|
art.on('click', (event) => {
|
||||||
console.info('click', event);
|
console.info('click', event);
|
||||||
});
|
});
|
||||||
|
```
|
||||||
|
|
||||||
## `error`
|
## `error`
|
||||||
|
|
||||||
@@ -722,6 +723,7 @@ var art = new Artplayer({
|
|||||||
art.on('subtitle', (state) => {
|
art.on('subtitle', (state) => {
|
||||||
console.log(state);
|
console.log(state);
|
||||||
});
|
});
|
||||||
|
```
|
||||||
|
|
||||||
## `contextmenu`
|
## `contextmenu`
|
||||||
|
|
||||||
|
|||||||
@@ -235,6 +235,7 @@ var art = new Artplayer({
|
|||||||
container: '.artplayer-app',
|
container: '.artplayer-app',
|
||||||
url: '/assets/sample/404.mp4',
|
url: '/assets/sample/404.mp4',
|
||||||
});
|
});
|
||||||
|
```
|
||||||
|
|
||||||
## RECONNECT_SLEEP_TIME
|
## RECONNECT_SLEEP_TIME
|
||||||
|
|
||||||
@@ -478,6 +479,7 @@ var art = new Artplayer({
|
|||||||
|
|
||||||
art.contextmenu.show = true;
|
art.contextmenu.show = true;
|
||||||
art.setting.show = true;
|
art.setting.show = true;
|
||||||
|
```
|
||||||
|
|
||||||
## FLIP
|
## FLIP
|
||||||
|
|
||||||
|
|||||||
@@ -478,6 +478,7 @@ var art = new Artplayer({
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
```
|
||||||
|
|
||||||
:::warning Note
|
:::warning Note
|
||||||
|
|
||||||
|
|||||||
@@ -494,6 +494,7 @@ var art = new Artplayer({
|
|||||||
url: '/assets/sample/video.mp4',
|
url: '/assets/sample/video.mp4',
|
||||||
fullscreenWeb: true,
|
fullscreenWeb: true,
|
||||||
});
|
});
|
||||||
|
```
|
||||||
|
|
||||||
## `subtitleOffset`
|
## `subtitleOffset`
|
||||||
|
|
||||||
@@ -885,7 +886,6 @@ Set video subtitles, supported subtitle formats: `vtt`, `srt`, `ass`
|
|||||||
| `name` | `String` | Subtitle name |
|
| `name` | `String` | Subtitle name |
|
||||||
| `url` | `String` | Subtitle URL |
|
| `url` | `String` | Subtitle URL |
|
||||||
| `type` | `String` | Subtitle type, options: `vtt`, `srt`, `ass` |
|
| `type` | `String` | Subtitle type, options: `vtt`, `srt`, `ass` |
|
||||||
|
|
||||||
| `style` | `Object` | Subtitle style |
|
| `style` | `Object` | Subtitle style |
|
||||||
| `encoding` | `String` | Subtitle encoding, defaults to `utf-8` |
|
| `encoding` | `String` | Subtitle encoding, defaults to `utf-8` |
|
||||||
| `escape` | `Boolean` | Whether to escape `html` tags, defaults to `true` |
|
| `escape` | `Boolean` | Whether to escape `html` tags, defaults to `true` |
|
||||||
|
|||||||
Reference in new issue
Block a user