修正字幕偏移插件的值

This commit is contained in:
Harvey Zack committed 2019-05-06 13:58:10 +08:00
1 parent d012920f34
commit c8143b0979
3 files changed
+8 -7

No files matched your search

+4 -3
View File
@@ -5486,7 +5486,8 @@
var setting = art.setting,
notice = art.notice,
template = art.template,
i18n = art.i18n;
i18n = art.i18n,
player = art.player;
i18n.update({
'zh-cn': {
'Subtitle offset time': '字幕偏移时间',
@@ -5516,8 +5517,8 @@
};
}
cue.startTime = cuesCache[index].startTime + time;
cue.endTime = cuesCache[index].endTime + time;
cue.startTime = clamp(cuesCache[index].startTime + time, 0, player.duration);
cue.endTime = clamp(cuesCache[index].endTime + time, 0, player.duration);
});
notice.show("".concat(i18n.get('Subtitle offset time'), ": ").concat(value, "s"));
art.emit('artplayerPluginSubtitle:set', value);