From 5e9b8eee60099f1b4956d8d9caa2ab64da5ae7be Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Wed, 13 Jul 2022 22:58:09 -0700 Subject: [PATCH] fix --- packages/client/src/components/media-video.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/client/src/components/media-video.vue b/packages/client/src/components/media-video.vue index 3e3af9b09..c68b8aed3 100644 --- a/packages/client/src/components/media-video.vue +++ b/packages/client/src/components/media-video.vue @@ -39,7 +39,12 @@ const props = defineProps<{ }>(); const videoEl = $ref(); -Vlitejs.registerPlugin('pip', VlitejsPip); +try { + Vlitejs.registerPlugin('pip', VlitejsPip); +} +catch (err) { + console.error('Pip plugin is already registered'); +} const playerInstance = ref();