mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-21 12:41:20 -08:00
简化icon
This commit is contained in:
1 parent
d9b38d8e72
commit
4d537d3872
11 files changed
+58
-51
No files matched your search
@@ -1,16 +1,3 @@
|
||||
function i18nMix(i18n) {
|
||||
i18n.update({
|
||||
'zh-cn': {
|
||||
'Playback of this file format is not supported': '不支持播放该文件格式',
|
||||
'Load local video successfully': '加载本地视频成功',
|
||||
},
|
||||
'zh-tw': {
|
||||
'Playback of this file format is not supported': '不支持播放該文件格式',
|
||||
'Load local video successfully': '加載本地視頻成功',
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
export default function localPreview(art) {
|
||||
const { append, setStyle, setStyles, sleep } = art.constructor.utils;
|
||||
const {
|
||||
@@ -21,7 +8,17 @@ export default function localPreview(art) {
|
||||
template,
|
||||
player,
|
||||
} = art;
|
||||
i18nMix(i18n);
|
||||
|
||||
i18n.update({
|
||||
'zh-cn': {
|
||||
'Playback of this file format is not supported': '不支持播放该文件格式',
|
||||
'Load local video successfully': '加载本地视频成功',
|
||||
},
|
||||
'zh-tw': {
|
||||
'Playback of this file format is not supported': '不支持播放該文件格式',
|
||||
'Load local video successfully': '加載本地視頻成功',
|
||||
},
|
||||
});
|
||||
|
||||
function loadVideo(file) {
|
||||
if (file) {
|
||||
|
||||
Reference in new issue
Block a user