🎥 Make videos programmatically with React
nice
Jonny Burger612751bc528b
diff --git a/packages/convert/app/components/Probe.tsx b/packages/convert/app/components/Probe.tsxindex 0f3a345601..48845d21e7 100644--- a/packages/convert/app/components/Probe.tsx+++ b/packages/convert/app/components/Probe.tsx@@ -1,3 +1,4 @@+/* eslint-disable complexity */import React, {useCallback, useMemo, useState} from 'react';import {Source} from '~/lib/convert-state';import {useIsNarrow} from '~/lib/is-narrow';@@ -148,7 +149,7 @@ export const Probe: React.FC<{metadata={metadata}track={selectedTrack}keyframes={keyframes}- durationInSeconds={durationInSeconds}+ durationInSeconds={durationInSeconds ?? null}/>) : selectedTrack.type === 'audio' ? (<AudioTrackOverviewdiff --git a/packages/convert/app/components/use-probe.ts b/packages/convert/app/components/use-probe.tsindex 58ddada80a..4f0e4928d9 100644--- a/packages/convert/app/components/use-probe.ts+++ b/packages/convert/app/components/use-probe.ts@@ -57,22 +57,7 @@ export const useProbe = ({parseMedia({logLevel,src: src.type === 'file' ? src.file : src.url,- fields: {- dimensions: true,- videoCodec: true,- size: true,- durationInSeconds: true,- audioCodec: true,- fps: true,- name: true,- tracks: true,- container: true,- isHdr: true,- rotation: true,- metadata: true,- location: true,- keyframes: true,- },+onParseProgress: onProgress,reader: src.type === 'file' ? webFileReader : fetchReader,signal: controller.signal,