From 63c178e177284ef4ad07b0ba3cd112d4831bb0a6 Mon Sep 17 00:00:00 2001 From: Harvey Zack Date: Sat, 24 Nov 2018 17:39:51 +0800 Subject: [PATCH] Update attachUrlMix.js --- packages/artplayer/src/player/attachUrlMix.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);