fix
This commit is contained in:
parent
bf8d55a952
commit
f848131bf7
1 changed files with 3 additions and 0 deletions
|
@ -30,12 +30,15 @@ import { ref } from 'vue';
|
||||||
import * as misskey from 'misskey-js';
|
import * as misskey from 'misskey-js';
|
||||||
import 'vlitejs/dist/vlite.css';
|
import 'vlitejs/dist/vlite.css';
|
||||||
import Vlitejs from 'vlitejs';
|
import Vlitejs from 'vlitejs';
|
||||||
|
import VlitejsPip from 'vlitejs/dist/plugins/pip';
|
||||||
import { defaultStore } from '@/store';
|
import { defaultStore } from '@/store';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
video: misskey.entities.DriveFile;
|
video: misskey.entities.DriveFile;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
|
Vlitejs.registerPlugin('pip', VlitejsPip);
|
||||||
|
|
||||||
new Vlitejs('#player', {
|
new Vlitejs('#player', {
|
||||||
plugins: ['pip'],
|
plugins: ['pip'],
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue