mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-15 17:16:16 -08:00
监听字幕时间变化
This commit is contained in:
1 parent
b330fbf7f1
commit
bd813b27ed
1 file changed
+7
@@ -46,6 +46,13 @@ function settingMix(art) {
|
||||
$range.value = 0;
|
||||
$value.innerText = 0;
|
||||
});
|
||||
|
||||
art.on('artplayerPluginSubtitle:set', value => {
|
||||
if ($range.value !== value) {
|
||||
$range.value = value;
|
||||
$value.innerText = value;
|
||||
}
|
||||
});
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user