mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-14 16:36:18 -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 => {
|
||||
const typeCallback = customType[type];
|
||||
if (type && typeCallback) {
|
||||
art.emit('beforeCustomType', url);
|
||||
art.emit('beforeCustomType');
|
||||
typeCallback($video, player.returnUrl(url), art);
|
||||
art.emit('afterCustomType', url);
|
||||
art.emit('afterCustomType');
|
||||
} else {
|
||||
art.emit('beforeAttachUrl', url);
|
||||
$video.src = player.returnUrl(url);
|
||||
art.emit('afterAttachUrl', url);
|
||||
art.emit('afterAttachUrl', $video.src);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user