From 869489b8da1f8f4b6f52bcc922afde4121a749ba Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Sat, 21 Jan 2023 22:50:56 +0000 Subject: [PATCH] Fire a player init event on initialization. (#2008) --- src/components/VideoPlayer.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/VideoPlayer.vue b/src/components/VideoPlayer.vue index 589ea5ab..4b0b3175 100644 --- a/src/components/VideoPlayer.vue +++ b/src/components/VideoPlayer.vue @@ -471,6 +471,9 @@ export default { this.updateMarkers(); + const event = new Event("playerInit"); + window.dispatchEvent(event); + const player = this.$ui.getControls().getPlayer(); this.$player = player;