From 82dca831a4b93906f17bb27803dbcf545736ca1c Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Wed, 13 Jul 2022 23:03:06 -0700 Subject: [PATCH] remove pip --- packages/client/src/components/media-video.vue | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/packages/client/src/components/media-video.vue b/packages/client/src/components/media-video.vue index c68b8aed3..1526a2633 100644 --- a/packages/client/src/components/media-video.vue +++ b/packages/client/src/components/media-video.vue @@ -31,7 +31,6 @@ import { ref, onMounted } from 'vue'; import * as misskey from 'misskey-js'; import 'vlitejs/dist/vlite.css'; import Vlitejs from 'vlitejs'; -import VlitejsPip from 'vlitejs/dist/plugins/pip'; import { defaultStore } from '@/store'; const props = defineProps<{ @@ -39,20 +38,12 @@ const props = defineProps<{ }>(); const videoEl = $ref(); -try { - Vlitejs.registerPlugin('pip', VlitejsPip); -} -catch (err) { - console.error('Pip plugin is already registered'); -} const playerInstance = ref(); onMounted(() => { if (videoEl) { - playerInstance.value = new Vlitejs(videoEl, { - plugins: ['pip'], - }); + playerInstance.value = new Vlitejs('#player'); } });