diff --git a/packages/artplayer/src/player/attachUrlMix.js b/packages/artplayer/src/player/attachUrlMix.js index dccf9b0ed..8cb93f4a3 100644 --- a/packages/artplayer/src/player/attachUrlMix.js +++ b/packages/artplayer/src/player/attachUrlMix.js @@ -13,9 +13,9 @@ export default function attachUrlMix(art, player) { value: url => { const typeCallback = customType[type]; if (type && typeCallback) { - art.emit('beforeCustomType'); + art.emit('beforeCustomType', type); typeCallback($video, player.returnUrl(url), art); - art.emit('afterCustomType'); + art.emit('afterCustomType', type); } else { art.emit('beforeAttachUrl', url); $video.src = player.returnUrl(url);