mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-10 04:36:15 -08:00
Update attachUrlMix.js
This commit is contained in:
1 parent
bd813b27ed
commit
63c178e177
1 file changed
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user