This commit is contained in:
Harvey Zack committed 2018-10-24 16:23:41 +08:00
1 parent 9aa2bf1588
commit 26ce79e459
6 files changed
+8 -12

No files matched your search

+2 -2
View File
@@ -5,7 +5,7 @@ let i18nMap = {
'Close': '关闭',
'Video load failed': '视频加载失败',
'Volume': '音量',
'Play': '开始',
'Play': '播放',
'Pause': '暂停',
'Rate': '速度',
'Mute': '静音'
@@ -16,7 +16,7 @@ let i18nMap = {
'Close': '關閉',
'Video load failed': '影片載入失敗',
'Volume': '音量',
'Play': '開始',
'Play': '播放',
'Pause': '暫停',
'Rate': '速度',
'Mute': '靜音'
+1 -1
View File
@@ -95,7 +95,7 @@ export default class Player {
play() {
const { refs: { $video }, i18n, notice } = this.art;
const promise = $video.play();
notice.show(i18n.get('Start'));
notice.show(i18n.get('Play'));
this.art.emit('play', $video);
return promise;
}
+1 -1
View File
@@ -52,7 +52,7 @@ export function setStyle(element, styles) {
}
export function secondToTime(second) {
const add0 = num => (num < 10 ? `0${num}` : String(num));
const add0 = num => num < 10 ? `0${num}` : String(num);
const hour = Math.floor(second / 3600);
const min = Math.floor((second - hour * 3600) / 60);
const sec = Math.floor(second - hour * 3600 - min * 60);