From 7101ceefb111ad5c56c274ee8a7d1ee9e20a4809 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Wed, 13 Jul 2022 23:19:02 -0700 Subject: [PATCH] fix --- packages/client/src/components/media-video.vue | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/packages/client/src/components/media-video.vue b/packages/client/src/components/media-video.vue index 1526a2633a..3234d950ec 100644 --- a/packages/client/src/components/media-video.vue +++ b/packages/client/src/components/media-video.vue @@ -15,13 +15,10 @@ class="vlite-js" preload="none" controls + :src="video.url" + :type="video.type" @contextmenu.stop - > - - + > @@ -39,11 +36,9 @@ const props = defineProps<{ const videoEl = $ref(); -const playerInstance = ref(); - onMounted(() => { if (videoEl) { - playerInstance.value = new Vlitejs('#player'); + new Vlitejs('#player'); } });