mirror of
https://github.com/xlmnxp/extractify.zip.git
synced 2024-11-23 17:13:12 +03:00
25 lines
537 B
Vue
25 lines
537 B
Vue
{2c1b1c1313272907c70fc0acc457861164b2aff6 true 537 video-player.vue 0xc001fd4850}
<script lang="ts" setup>
|
|
import '@vime/core/themes/default.css';
|
|
import { Player, DefaultUi, Video } from '@vime/vue-next';
|
|
|
|
import mime from 'mime';
|
|
|
|
interface Props {
|
|
src: string
|
|
}
|
|
|
|
let { src } = defineProps<Props>();
|
|
let selectedPath = useSelectedPath();
|
|
|
|
let videoType = mime.getType(selectedPath.value);
|
|
|
|
</script>
|
|
<template>
|
|
<Player playsinline style="width: 100%">
|
|
<Video>
|
|
<source :data-src="src" :type="videoType!" />
|
|
</Video>
|
|
<DefaultUi>
|
|
</DefaultUi>
|
|
</Player>
|
|
</template> |