mirror of
https://github.com/xlmnxp/extractify.zip.git
synced 2024-11-24 01:24:35 +03:00
21 lines
463 B
Vue
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> |