add luma extend (#118)

This commit is contained in:
HCode authored and GitHub committed 2024-08-18 07:17:10 +00:00
1 parent 84d3c3a839
commit fa44f32111
10 files changed
+383 -31

No files matched your search

+40
View File
@@ -0,0 +1,40 @@
<template>
<div>
<vue-plyr :options="options" class="video">
<video controls crossorigin playsinline :data-poster="modelValue?.response?.thumbnail_url">
<source size="1080" :src="modelValue?.response?.video_url" type="video/mp4" />
</video>
</vue-plyr>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
// @ts-ignore
import VuePlyr from '@skjnldsv/vue-plyr';
// @ts-ignore
import { ILumaTask } from '@/models';
import '@skjnldsv/vue-plyr/dist/vue-plyr.css';
export default defineComponent({
name: 'VideoPlayer',
components: { VuePlyr },
props: {
modelValue: {
type: Object as () => ILumaTask | undefined,
required: true
}
},
data() {
return {
options: { quality: { default: '1080p' } }
};
}
});
</script>
<style lang="scss" scoped>
.video {
max-width: 100%;
height: 450px;
}
</style>