mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 14: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: {
|
||||
|
||||
@@ -950,12 +950,13 @@ var art = new Artplayer({
|
||||
|
||||
设置视频的字幕,支持字幕格式:`vtt`、`srt`、`ass`
|
||||
|
||||
| 属性 | 类型 | 描述 |
|
||||
| ----------- | --------- | ---------------------------- |
|
||||
| `url` | `String` | 字幕地址 |
|
||||
| `style` | `Object` | 字幕样式 |
|
||||
| `encoding` | `String` | 字幕编码,默认 `utf-8` |
|
||||
| `bilingual` | `Boolean` | 是否双字幕样式,通过换行区分 |
|
||||
| 属性 | 类型 | 描述 |
|
||||
| ----------- | --------- | ---------------------------------- |
|
||||
| `url` | `String` | 字幕地址 |
|
||||
| `type` | `String` | 字幕类型,可选 `vtt`、`srt`、`ass` |
|
||||
| `style` | `Object` | 字幕样式 |
|
||||
| `encoding` | `String` | 字幕编码,默认 `utf-8` |
|
||||
| `bilingual` | `Boolean` | 是否双字幕样式,通过换行区分 |
|
||||
|
||||
<div className="run-code">▶ Run Code</div>
|
||||
|
||||
@@ -965,6 +966,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