Add veo videos (#251)
This commit is contained in:
1 parent
a0a7c30c53
commit
14873dde9b
185 files changed
+9497
-3699
No files matched your search
@@ -2,6 +2,7 @@
|
||||
<div class="flex flex-col h-full">
|
||||
<div class="flex-1 overflow-y-auto p-[15px]">
|
||||
<is-videos-selector class="mb-2" />
|
||||
<video-from-input v-show="config?.action === 'extend'" class="mb-4" />
|
||||
<model-selector v-if="!config.is_videos" class="mb-2" />
|
||||
<prompt-input class="mb-2" />
|
||||
<image-url-input v-if="config.is_videos" class="mb-2" />
|
||||
@@ -45,6 +46,7 @@ import ModelSelector from './config/ModelSelector.vue';
|
||||
import QualitySelector from './config/QualitySelector.vue';
|
||||
import ImageWeightSelector from './config/ImageWeightSelector.vue';
|
||||
import WeirdSelector from './config/WeirdSelector.vue';
|
||||
import VideoFromInput from './config/VideoFromInput.vue';
|
||||
import StyleSelector from './config/StyleSelector.vue';
|
||||
import ElementsSelector from './config/ElementsSelector.vue';
|
||||
import ModeSelector from './config/ModeSelector2.vue';
|
||||
@@ -74,7 +76,8 @@ export default defineComponent({
|
||||
ReferenceImage,
|
||||
IsVideosSelector,
|
||||
ImageUrlInput,
|
||||
Consumption
|
||||
Consumption,
|
||||
VideoFromInput
|
||||
},
|
||||
emits: ['generate'],
|
||||
computed: {
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
<template>
|
||||
<div class="relative">
|
||||
<div class="flex mb-2">
|
||||
<span class="text-sm font-bold">{{ $t('midjourney.name.extend') }}</span>
|
||||
</div>
|
||||
<div>
|
||||
<video-player v-if="config?.video_url" :src="config?.video_url" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
// @ts-ignore
|
||||
import { IMidjourneyTask } from '@/models';
|
||||
import VideoPlayer from '@/components/common/VideoPlayer.vue';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'VideoFromInput',
|
||||
components: { VideoPlayer },
|
||||
props: {
|
||||
modelValue: {
|
||||
type: Object as () => IMidjourneyTask | undefined,
|
||||
required: false,
|
||||
default: undefined
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
options: { quality: { default: '1080p' } }
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
config() {
|
||||
return this.$store.state.midjourney?.config;
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@@ -343,6 +343,8 @@ export default defineComponent({
|
||||
this.$store.commit('midjourney/setConfig', {
|
||||
...this.$store.state.midjourney?.config,
|
||||
video_id: response.video_id,
|
||||
// @ts-ignore
|
||||
video_url: response.video_urls?.[0],
|
||||
action: 'extend',
|
||||
is_videos: true
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user