extractify.zip/components/media/video-player.vue
2023-07-21 20:23:33 +03:00
Ask

21 lines
463 B
Vue

{351f289c1cd67202046913edbed6d655d78573ae true 463 video-player.vue 0xc001e477a0}

<script lang="ts" setup>
import 'vue-plyr/dist/vue-plyr.css';
// @ts-ignore
import VuePlyr from 'vue-plyr';
import mime from 'mime';
interface Props {
src: string
}
let { src } = defineProps<Props>();
let selectedPath = useSelectedPath();
let videoType = mime.getType(selectedPath.value);
</script>
<template>
<VuePlyr>
<video controls playsinline :src="src" :type="videoType!" style="height: 84vh;">
</video>
</VuePlyr>
</template>