Skip to content

Commit

Permalink
feat: add video display in Create.vue and let comfyUi.ts process vide…
Browse files Browse the repository at this point in the history
…os IV

Refs: #59

Signed-off-by: julianbollig <julian.bollig@tngtech.com>
  • Loading branch information
julianbollig committed Feb 24, 2025
1 parent 452395e commit bc68dec
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions WebUI/src/views/Create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,20 @@
<div
v-for="image in imageGeneration.generatedImages"
v-show="selectedImageId === image.id"
class="flex justify-center items-center"
>
<!-- eslint-enable -->
<img class="p-1 max-w-768px max-h-512px" v-if="!isVideo(image)" :src="image.imageUrl" />
<video class="p-1 max-w-768px max-h-512px" v-else controls>
<img
v-if="!isVideo(image)"
class="max-w-768px max-h-512px object-contain p-2"
:src="image.imageUrl"
/>
<video
v-else
class="max-w-768px max-h-512px object-contain p-2"
controlsList="nodownload nofullscreen noremoteplayback"
controls
>
<source :src="image.videoUrl" :type="image.videoFormat" />
</video>
</div>
Expand Down

0 comments on commit bc68dec

Please sign in to comment.