mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 10:56:15 -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;
|
||||
}, 1000);
|
||||
});
|
||||
```
|
||||
|
||||
:::warning For `Component Configuration`, please refer to:
|
||||
|
||||
|
||||
@@ -245,6 +245,7 @@ var art = new Artplayer({
|
||||
art.on('click', (event) => {
|
||||
console.info('click', event);
|
||||
});
|
||||
```
|
||||
|
||||
## `error`
|
||||
|
||||
@@ -722,6 +723,7 @@ var art = new Artplayer({
|
||||
art.on('subtitle', (state) => {
|
||||
console.log(state);
|
||||
});
|
||||
```
|
||||
|
||||
## `contextmenu`
|
||||
|
||||
|
||||
@@ -235,6 +235,7 @@ var art = new Artplayer({
|
||||
container: '.artplayer-app',
|
||||
url: '/assets/sample/404.mp4',
|
||||
});
|
||||
```
|
||||
|
||||
## RECONNECT_SLEEP_TIME
|
||||
|
||||
@@ -478,6 +479,7 @@ var art = new Artplayer({
|
||||
|
||||
art.contextmenu.show = true;
|
||||
art.setting.show = true;
|
||||
```
|
||||
|
||||
## FLIP
|
||||
|
||||
|
||||
@@ -478,6 +478,7 @@ var art = new Artplayer({
|
||||
},
|
||||
],
|
||||
});
|
||||
```
|
||||
|
||||
:::warning Note
|
||||
|
||||
|
||||
@@ -494,6 +494,7 @@ var art = new Artplayer({
|
||||
url: '/assets/sample/video.mp4',
|
||||
fullscreenWeb: true,
|
||||
});
|
||||
```
|
||||
|
||||
## `subtitleOffset`
|
||||
|
||||
@@ -885,7 +886,6 @@ Set video subtitles, supported subtitle formats: `vtt`, `srt`, `ass`
|
||||
| `name` | `String` | Subtitle name |
|
||||
| `url` | `String` | Subtitle URL |
|
||||
| `type` | `String` | Subtitle type, options: `vtt`, `srt`, `ass` |
|
||||
|
||||
| `style` | `Object` | Subtitle style |
|
||||
| `encoding` | `String` | Subtitle encoding, defaults to `utf-8` |
|
||||
| `escape` | `Boolean` | Whether to escape `html` tags, defaults to `true` |
|
||||
|
||||
Reference in new issue
Block a user