feat: 增加字幕相关属性和事件,优化字幕切换逻辑

This commit is contained in:
Harvey Zack committed 2024-09-14 16:14:59 +08:00
1 parent a0b6af32d0
commit 2b11d897ff
11 files changed
+38 -27

No files matched your search

@@ -6,7 +6,7 @@ export default function subtitleOffsetMix(art) {
let offsetCache = 0;
let cuesCache = [];
art.on('subtitle:switch', () => {
art.on('subtitleSwitch', () => {
cuesCache = [];
});