mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 09:41:20 -08:00
update
This commit is contained in:
1 parent
98c22208f3
commit
d4572cd469
36 files changed
+113
-109
No files matched your search
@@ -952,6 +952,7 @@ Set the subtitles of the video, support subtitles format: `vtt`、`srt`、`ass`
|
||||
| Property | Type | Description |
|
||||
| ----------- | --------- | ------------------------------------------------------ |
|
||||
| `url` | `String` | Subtitle url |
|
||||
| `type` | `String` | Subtitle type: `vtt`, `srt`, `ass` |
|
||||
| `style` | `Object` | Subtitle style |
|
||||
| `encoding` | `String` | Subtitle encoding, default `utf-8` |
|
||||
| `bilingual` | `Boolean` | Whether the double subtitle style is divided by a wrap |
|
||||
@@ -964,6 +965,7 @@ var art = new Artplayer({
|
||||
url: '/assets/sample/video.mp4',
|
||||
subtitle: {
|
||||
url: '/assets/sample/subtitle.srt',
|
||||
type: 'srt',
|
||||
encoding: 'utf-8',
|
||||
bilingual: true,
|
||||
style: {
|
||||
|
||||
Reference in new issue
Block a user