We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3026f24 commit 4a69588Copy full SHA for 4a69588
1 file changed
src/video-player.js
@@ -578,7 +578,6 @@ class VideoPlayer {
578
}
579
580
_setExtendedEvents() {
581
- const options = {};
582
const events = [];
583
584
// Add user-configured events; ExtendedEvents will merge with defaults
@@ -596,11 +595,7 @@ class VideoPlayer {
596
595
});
597
598
599
- if (events.length > 0) {
600
- options.events = events;
601
- }
602
-
603
- const extendedEvents = new ExtendedEvents(this.videojs, options);
+ const extendedEvents = new ExtendedEvents(this.videojs, { events });
604
605
// Forward all extended events to the main player for developer access
606
Object.keys(extendedEvents.events).forEach((_event) => {
0 commit comments