mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 23:51:20 -08:00
feat: 增加字幕相关属性和事件,优化字幕切换逻辑
This commit is contained in:
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 = [];
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user