From 3e0eea6ddbe17cad10cb427e8565973947195250 Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Thu, 25 Feb 2021 19:36:19 +0530 Subject: [PATCH] Fix player destroyed incorrectly. --- src/components/WatchVideo.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index d21722fb..39190718 100644 --- a/src/components/WatchVideo.vue +++ b/src/components/WatchVideo.vue @@ -105,7 +105,7 @@ export default { }, beforeUnmount() { if (this.player) { - document.querySelector("video").remove(); + window.player.destroy(); window.player = undefined; window.ui = undefined; }