diff --git a/packages/client/src/components/media-video.vue b/packages/client/src/components/media-video.vue index fe7a450d57..57a81cd0d0 100644 --- a/packages/client/src/components/media-video.vue +++ b/packages/client/src/components/media-video.vue @@ -30,12 +30,15 @@ import { ref } 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<{ video: misskey.entities.DriveFile; }>(); +Vlitejs.registerPlugin('pip', VlitejsPip); + new Vlitejs('#player', { plugins: ['pip'], });