mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-17 18:11:20 -08:00
typofix
This commit is contained in:
1 parent
9aa2bf1588
commit
26ce79e459
6 files changed
+8
-12
No files matched your search
+2
-2
@@ -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
@@ -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
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user