🎥 Make videos programmatically with React
alright
Jonny Burgercac50cf85ca2
diff --git a/packages/convert/app/components/EmbeddedImage.tsx b/packages/convert/app/components/EmbeddedImage.tsxindex 9df0a53f79..a68d1af2bc 100644--- a/packages/convert/app/components/EmbeddedImage.tsx+++ b/packages/convert/app/components/EmbeddedImage.tsx@@ -1,6 +1,7 @@import type {MediaParserEmbeddedImage} from '@remotion/media-parser';import type React from 'react';import {useEffect, useState} from 'react';+import {THUMBNAIL_HEIGHT} from './VideoThumbnail';export const EmbeddedImage: React.FC<{readonly images: MediaParserEmbeddedImage[];@@ -36,7 +37,12 @@ export const EmbeddedImage: React.FC<{}return (- <div className="h-[200px] justify-center items-center flex border-solid border-b-2 border-black bg-slate-100">+ <div+ style={{+ height: THUMBNAIL_HEIGHT,+ }}+ className="justify-center items-center flex border-solid border-b-2 border-black bg-slate-100"+ ><img src={url} className="max-h-full" /></div>);diff --git a/packages/convert/app/components/Probe.tsx b/packages/convert/app/components/Probe.tsxindex 2e55743783..96e2b19056 100644--- a/packages/convert/app/components/Probe.tsx+++ b/packages/convert/app/components/Probe.tsx@@ -136,7 +136,11 @@ export const Probe: React.FC<{<div className="w-full lg:w-[350px]"><Card className="overflow-hidden lg:w-[350px]"><div className="flex flex-row lg:flex-col w-full border-b-2 border-black">- {images ? <EmbeddedImage images={images} /> : null}+ {images ? (+ <EmbeddedImage images={images} />+ ) : isAudio ? (+ <AudioWaveForm bars={waveform} />+ ) : null}{error ? null : thumbnailError ? null : isAudio ? null : (<VideoThumbnailref={videoThumbnailRef}@@ -147,7 +151,6 @@ export const Probe: React.FC<{initialReveal={false}/>)}- <AudioWaveForm bars={waveform} /><CardHeader className="p-3 lg:p-4 w-full"><CardTitle title={name ?? undefined}>{name ? (