mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 06:31:20 -08:00
feat: 优化字幕偏移逻辑,增加对模板的支持,修复字幕切换事件参数
This commit is contained in:
1 parent
36b2c80666
commit
9b87f9661d
4 files changed
+18
-28
No files matched your search
@@ -153,7 +153,7 @@ export default class Subtitle extends Component {
|
||||
if (this.url === subUrl) return subUrl;
|
||||
URL.revokeObjectURL(this.url);
|
||||
this.createTrack('metadata', subUrl);
|
||||
this.art.emit('subtitleSwitch', subUrl);
|
||||
this.art.emit('subtitleSwitch', subUrl, subtitleOption.url);
|
||||
return subUrl;
|
||||
})
|
||||
.catch((err) => {
|
||||
|
||||
Reference in new issue
Block a user