This commit is contained in:
ThatOneCalculator 2022-07-13 22:58:09 -07:00
parent a0cbc9ba9d
commit 5e9b8eee60

View file

@ -39,7 +39,12 @@ const props = defineProps<{
}>();
const videoEl = $ref<HTMLVideoElement | null>();
Vlitejs.registerPlugin('pip', VlitejsPip);
try {
Vlitejs.registerPlugin('pip', VlitejsPip);
}
catch (err) {
console.error('Pip plugin is already registered');
}
const playerInstance = ref();