mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
Update urlMix.js
This commit is contained in:
1 parent
7dbe1ae929
commit
b2c93d6f4e
1 file changed
+3
-3
@@ -2,7 +2,7 @@ import { getExt, def, sleep } from '../utils';
|
||||
|
||||
export default function urlMix(art, player) {
|
||||
const {
|
||||
option: { type, customType },
|
||||
option,
|
||||
template: { $video },
|
||||
} = art;
|
||||
|
||||
@@ -11,8 +11,8 @@ export default function urlMix(art, player) {
|
||||
return $video.src;
|
||||
},
|
||||
set(url) {
|
||||
const typeName = type || getExt(url);
|
||||
const typeCallback = customType[typeName];
|
||||
const typeName = option.type || getExt(url);
|
||||
const typeCallback = option.customType[typeName];
|
||||
if (typeName && typeCallback) {
|
||||
sleep().then(() => {
|
||||
art.loading.show = true;
|
||||
|
||||
Reference in new issue
Block a user