show preview of videos (only works for .MP4)
This commit is contained in:
parent
caa63013f5
commit
cacf78a4bb
@ -467,14 +467,27 @@ function App() {
|
|||||||
"scanning relative": appState === AppState.CODING,
|
"scanning relative": appState === AppState.CODING,
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<img
|
{inputMode === "image" && (
|
||||||
className="w-[340px] border border-gray-200 rounded-md"
|
<img
|
||||||
src={referenceImages[0]}
|
className="w-[340px] border border-gray-200 rounded-md"
|
||||||
alt="Reference"
|
src={referenceImages[0]}
|
||||||
/>
|
alt="Reference"
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
{inputMode === "video" && (
|
||||||
|
<video
|
||||||
|
muted
|
||||||
|
autoPlay
|
||||||
|
loop
|
||||||
|
className="w-[340px] border border-gray-200 rounded-md"
|
||||||
|
src={referenceImages[0]}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="text-gray-400 uppercase text-sm text-center mt-1">
|
<div className="text-gray-400 uppercase text-sm text-center mt-1">
|
||||||
Original Screenshot
|
{inputMode === "video"
|
||||||
|
? "Original Video"
|
||||||
|
: "Original Screenshot"}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user