diff --git a/packages/artplayer/src/player/attachUrlMix.js b/packages/artplayer/src/player/attachUrlMix.js index d9c7eb614..dccf9b0ed 100644 --- a/packages/artplayer/src/player/attachUrlMix.js +++ b/packages/artplayer/src/player/attachUrlMix.js @@ -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); } }, });