mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 02:01:20 -08:00
update
This commit is contained in:
1 parent
2d57f6d6d1
commit
fd8e763ae6
28 files changed
+135
-165
No files matched your search
@@ -41,7 +41,7 @@ export default function aspectRatioMix(art) {
|
||||
$player.dataset.aspectRatio = ratio;
|
||||
}
|
||||
|
||||
notice.show = `${i18n.get('Aspect ratio')}: ${ratio === 'default' ? i18n.get('Default') : ratio}`;
|
||||
notice.show = `${i18n.get('Aspect Ratio')}: ${ratio === 'default' ? i18n.get('Default') : ratio}`;
|
||||
art.emit('aspectRatio', ratio);
|
||||
},
|
||||
});
|
||||
|
||||
@@ -81,7 +81,7 @@ export default function eventInit(art) {
|
||||
art.controls.show = false;
|
||||
addClass($player, 'art-error');
|
||||
sleep(1000).then(() => {
|
||||
notice.show = i18n.get('Video load failed');
|
||||
notice.show = i18n.get('Video Load Failed');
|
||||
art.destroy(false);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ export default function flipMix(art) {
|
||||
}
|
||||
|
||||
const word = flip.replace(flip[0], flip[0].toUpperCase());
|
||||
notice.show = `${i18n.get('Flip')}: ${i18n.get(word)}`;
|
||||
notice.show = `${i18n.get('Video Flip')}: ${i18n.get(word)}`;
|
||||
art.emit('flip', flip);
|
||||
},
|
||||
});
|
||||
|
||||
@@ -69,7 +69,7 @@ export default function fullscreenMix(art) {
|
||||
return false;
|
||||
},
|
||||
set() {
|
||||
notice.show = i18n.get('Fullscreen not supported');
|
||||
notice.show = i18n.get('Fullscreen Not Supported');
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ export default function miniMix(art) {
|
||||
removeClass($player, 'art-is-dragging');
|
||||
});
|
||||
|
||||
append($miniTitle, option.title || i18n.get('Mini player'));
|
||||
append($miniTitle, option.title || i18n.get('Mini Player'));
|
||||
|
||||
def(art, 'mini', {
|
||||
get() {
|
||||
|
||||
@@ -74,7 +74,7 @@ export default function pipMix(art) {
|
||||
return false;
|
||||
},
|
||||
set() {
|
||||
notice.show = i18n.get('PIP not supported');
|
||||
notice.show = i18n.get('PIP Not Supported');
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@@ -28,10 +28,9 @@ export default function subtitleOffsetMix(art) {
|
||||
}
|
||||
|
||||
art.subtitle.update();
|
||||
notice.show = `${i18n.get('Subtitle offset time')}: ${value}s`;
|
||||
notice.show = `${i18n.get('Subtitle Offset Time')}: ${value}s`;
|
||||
art.emit('subtitleOffset', value);
|
||||
} else {
|
||||
notice.show = `${i18n.get('No subtitles found')}`;
|
||||
art.emit('subtitleOffset', 0);
|
||||
}
|
||||
},
|
||||
|
||||
@@ -19,7 +19,7 @@ export default function switchMix(art) {
|
||||
art.play();
|
||||
}
|
||||
if (name) {
|
||||
notice.show = `${i18n.get('Switch video')}: ${name}`;
|
||||
notice.show = `${i18n.get('Switch Video')}: ${name}`;
|
||||
}
|
||||
art.emit('switch', url);
|
||||
resolve(url);
|
||||
|
||||
Reference in new issue
Block a user