mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-21 12:41:20 -08:00
合并字幕插件
This commit is contained in:
1 parent
6c61a5678b
commit
acdb272393
17 files changed
+149
-165
No files matched your search
+6
-6
@@ -1124,11 +1124,11 @@ art.contextmenu.yourContextmenu.hide();
|
||||
|
||||
- Type: `Object`
|
||||
|
||||
| propertie | type | Description |
|
||||
| --------- | ---------- | --------------- |
|
||||
| `switch` | `Function` | Switch subtitle |
|
||||
| `show` | `Function` | Show subtitle |
|
||||
| `hide` | `Function` | Hide subtitle |
|
||||
| propertie | type | Description |
|
||||
| --------- | ---------- | ------------- |
|
||||
| `init` | `Function` | Init subtitle |
|
||||
| `show` | `Function` | Show subtitle |
|
||||
| `hide` | `Function` | Hide subtitle |
|
||||
|
||||
[Run Code](/)
|
||||
|
||||
@@ -1143,7 +1143,7 @@ var art = new Artplayer({
|
||||
});
|
||||
|
||||
this.art.on('firstCanplay', () => {
|
||||
art.subtitle.switch(url + '/subtitle/one-more-time-one-more-chance.vtt');
|
||||
art.subtitle.init(url + '/subtitle/one-more-time-one-more-chance.vtt');
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user