From b17fb633ffcfded2910e8512c60974a25bbd485c 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 3e3af9b095..c68b8aed32 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();