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();