mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-15 00:56:16 -08:00
Update option.md
This commit is contained in:
1 parent
610e1e6139
commit
666d1d8585
1 file changed
+8
-9
@@ -871,16 +871,15 @@ var art = new Artplayer({
|
||||
|
||||
Set the video subtitles, supporting subtitle formats: `vtt`, `srt`, `ass`
|
||||
|
||||
| Property | Type | Description |
|
||||
| -------- | -------- | ------------------------------------------- |
|
||||
| `name` | `String` | Subtitle name |
|
||||
| `url` | `String` | Subtitle URL |
|
||||
| `type` | `String` | Subtitle type, options: `vtt`, `srt`, `ass` |
|
||||
|
||||
| `style` | `Object` | Subtitle style |
|
||||
| `encoding` | `String` | Subtitle encoding, default `utf-8` |
|
||||
| Property | Type | Description |
|
||||
| ----------- | ---------- | --------------------------------------------- |
|
||||
| `name` | `String` | Subtitle name |
|
||||
| `url` | `String` | Subtitle URL |
|
||||
| `type` | `String` | Subtitle type, options: `vtt`, `srt`, `ass` |
|
||||
| `style` | `Object` | Subtitle style |
|
||||
| `encoding` | `String` | Subtitle encoding, default `utf-8` |
|
||||
| `escape` | `Boolean` | Whether to escape `html` tags, default `true` |
|
||||
| `onVttLoad` | `Function` | Function to modify `vtt` text |
|
||||
| `onVttLoad` | `Function` | Function to modify `vtt` text |
|
||||
|
||||
<div className="run-code">▶ Run Code</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user