mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 06:31:20 -08:00
update
This commit is contained in:
1 parent
fedbf3b6f7
commit
598ec8410d
3 files changed
+5
-6
No files matched your search
@@ -2,7 +2,7 @@ import { def } from '../utils';
|
||||
|
||||
export default function subtitleOffsetMix(art) {
|
||||
const { clamp } = art.constructor.utils;
|
||||
const { notice, template, i18n, subtitle } = art;
|
||||
const { notice, template, i18n } = art;
|
||||
|
||||
let cuesCache = [];
|
||||
art.on('subtitle:switch', () => {
|
||||
@@ -27,7 +27,7 @@ export default function subtitleOffsetMix(art) {
|
||||
cue.endTime = clamp(cuesCache[index].endTime + time, 0, art.duration);
|
||||
}
|
||||
|
||||
subtitle.update();
|
||||
art.subtitle.update();
|
||||
notice.show = `${i18n.get('Subtitle offset time')}: ${value}s`;
|
||||
art.emit('subtitleOffset', value);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user