mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 00:31:20 -08:00
优化字幕结构
This commit is contained in:
1 parent
3965132252
commit
9f2038539e
12 files changed
+137
-257
No files matched your search
@@ -3,6 +3,7 @@ import { query } from '../utils';
|
||||
function settingMix(art) {
|
||||
const {
|
||||
i18n,
|
||||
subtitle,
|
||||
events: { proxy },
|
||||
} = art;
|
||||
|
||||
@@ -33,6 +34,7 @@ function settingMix(art) {
|
||||
});
|
||||
|
||||
art.on('artplayerPluginSubtitleOffset', value => {
|
||||
subtitle.update();
|
||||
if ($range.value !== value) {
|
||||
$range.value = value;
|
||||
$value.innerText = value;
|
||||
|
||||
Reference in new issue
Block a user