mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 02:01:20 -08:00
artplayer@4.6.2
This commit is contained in:
1 parent
1d56947e16
commit
43fda18f18
139 files changed
+1658
-1630
No files matched your search
@@ -928,12 +928,13 @@ var art = new Artplayer({
|
||||
|
||||
设置视频的字幕,支持字幕格式:`vtt`, `srt`, `ass`
|
||||
|
||||
| 属性 | 类型 | 描述 |
|
||||
| ---------- | -------- | ---------------------------------- |
|
||||
| `url` | `String` | 字幕地址 |
|
||||
| `type` | `String` | 字幕类型,可选 `vtt`, `srt`, `ass` |
|
||||
| `style` | `Object` | 字幕样式 |
|
||||
| `encoding` | `String` | 字幕编码,默认 `utf-8` |
|
||||
| 属性 | 类型 | 描述 |
|
||||
| ---------- | --------- | ----------------------------------- |
|
||||
| `url` | `String` | 字幕地址 |
|
||||
| `type` | `String` | 字幕类型,可选 `vtt`, `srt`, `ass` |
|
||||
| `style` | `Object` | 字幕样式 |
|
||||
| `encoding` | `String` | 字幕编码,默认 `utf-8` |
|
||||
| `escape` | `Boolean` | 是否转义 `html` 标签,默认为 `true` |
|
||||
|
||||
<div className="run-code">▶ Run Code</div>
|
||||
|
||||
@@ -945,6 +946,7 @@ var art = new Artplayer({
|
||||
url: '/assets/sample/subtitle.srt',
|
||||
type: 'srt',
|
||||
encoding: 'utf-8',
|
||||
escape: true,
|
||||
style: {
|
||||
color: '#03A9F4',
|
||||
'font-size': '30px',
|
||||
|
||||
Reference in new issue
Block a user