fix
This commit is contained in:
parent
82dca831a4
commit
7101ceefb1
|
@ -15,13 +15,10 @@
|
||||||
class="vlite-js"
|
class="vlite-js"
|
||||||
preload="none"
|
preload="none"
|
||||||
controls
|
controls
|
||||||
|
:src="video.url"
|
||||||
|
:type="video.type"
|
||||||
@contextmenu.stop
|
@contextmenu.stop
|
||||||
>
|
></video>
|
||||||
<source
|
|
||||||
:src="video.url"
|
|
||||||
:type="video.type"
|
|
||||||
>
|
|
||||||
</video>
|
|
||||||
<i class="fas fa-eye-slash" @click="hide = true"></i>
|
<i class="fas fa-eye-slash" @click="hide = true"></i>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -39,11 +36,9 @@ const props = defineProps<{
|
||||||
|
|
||||||
const videoEl = $ref<HTMLVideoElement | null>();
|
const videoEl = $ref<HTMLVideoElement | null>();
|
||||||
|
|
||||||
const playerInstance = ref();
|
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (videoEl) {
|
if (videoEl) {
|
||||||
playerInstance.value = new Vlitejs('#player');
|
new Vlitejs('#player');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue