Skip to content

Commit 60b37eb

Browse files
committed
feat: 🎸 (xgplayer) add runHooks method to enhance hook functionality
1 parent d2b2d33 commit 60b37eb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/xgplayer/src/player.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2620,6 +2620,13 @@ class Player extends MediaProxy {
26202620
return hook.call(this, ...arguments)
26212621
}
26222622

2623+
/**
2624+
* @param {...any} args
2625+
*/
2626+
runHooks (...args) {
2627+
return runHooks.call(this, ...arguments)
2628+
}
2629+
26232630
/**
26242631
* @param { string } hookName
26252632
* @param { (player: any, ...args) => boolean | Promise<any> } handler

0 commit comments

Comments
 (0)