mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 00:31:20 -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) {
|
export default function urlMix(art, player) {
|
||||||
const {
|
const {
|
||||||
option: { type, customType },
|
option,
|
||||||
template: { $video },
|
template: { $video },
|
||||||
} = art;
|
} = art;
|
||||||
|
|
||||||
@@ -11,8 +11,8 @@ export default function urlMix(art, player) {
|
|||||||
return $video.src;
|
return $video.src;
|
||||||
},
|
},
|
||||||
set(url) {
|
set(url) {
|
||||||
const typeName = type || getExt(url);
|
const typeName = option.type || getExt(url);
|
||||||
const typeCallback = customType[typeName];
|
const typeCallback = option.customType[typeName];
|
||||||
if (typeName && typeCallback) {
|
if (typeName && typeCallback) {
|
||||||
sleep().then(() => {
|
sleep().then(() => {
|
||||||
art.loading.show = true;
|
art.loading.show = true;
|
||||||
|
|||||||
Reference in new issue
Block a user