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