From c87af466c85180768e8f9a465dfa12f2865e5e6c Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Sat, 22 Jan 2022 23:10:05 +0000 Subject: [PATCH] Workaround for bug in shaka's programmatic setup. --- src/components/VideoPlayer.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/VideoPlayer.vue b/src/components/VideoPlayer.vue index 3e6942a4..0a0e0c97 100644 --- a/src/components/VideoPlayer.vue +++ b/src/components/VideoPlayer.vue @@ -375,6 +375,7 @@ export default { const url = "/watch?v=" + this.video.id; if (!this.$ui) { + this.destroy(); const OpenButton = class extends shaka.ui.Element { constructor(parent, controls) { super(parent, controls);