feat: 优化字幕偏移逻辑,增加对模板的支持,修复字幕切换事件参数

This commit is contained in:
Harvey Zack committed 2024-09-14 16:59:24 +08:00
1 parent 36b2c80666
commit 9b87f9661d
4 files changed
+18 -28

No files matched your search

+1 -1
View File
@@ -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) => {