mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-29 02:51:20 -08:00
Update attachUrlMix.js
This commit is contained in:
1 parent
be923b2a70
commit
c397bb7f81
1 file changed
+3
-3
@@ -13,13 +13,13 @@ export default function attachUrlMix(art, player) {
|
|||||||
value: url => {
|
value: url => {
|
||||||
const typeCallback = customType[type];
|
const typeCallback = customType[type];
|
||||||
if (type && typeCallback) {
|
if (type && typeCallback) {
|
||||||
art.emit('beforeCustomType', url);
|
art.emit('beforeCustomType');
|
||||||
typeCallback($video, player.returnUrl(url), art);
|
typeCallback($video, player.returnUrl(url), art);
|
||||||
art.emit('afterCustomType', url);
|
art.emit('afterCustomType');
|
||||||
} else {
|
} else {
|
||||||
art.emit('beforeAttachUrl', url);
|
art.emit('beforeAttachUrl', url);
|
||||||
$video.src = player.returnUrl(url);
|
$video.src = player.returnUrl(url);
|
||||||
art.emit('afterAttachUrl', url);
|
art.emit('afterAttachUrl', $video.src);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user