🎥 Make videos programmatically with React
hmm
Jonny Burger56e695f80cc5
diff --git a/packages/media-parser/src/containers/iso-base-media/mdat/mdat.ts b/packages/media-parser/src/containers/iso-base-media/mdat/mdat.tsindex d2d939de43..eb895dbd04 100644--- a/packages/media-parser/src/containers/iso-base-media/mdat/mdat.ts+++ b/packages/media-parser/src/containers/iso-base-media/mdat/mdat.ts@@ -18,16 +18,16 @@ export const parseMdatSection = async (const alreadyHas = getHasTracks(state);if (!alreadyHas) {- // Will first read the end and then return- if (state.supportsContentRange) {- state.iso.setShouldReturnToVideoSectionAfterEnd(true);-- return makeSkip(videoSection.size + videoSection.start);+ if (!state.supportsContentRange) {+ throw new Error(+ 'Source does not support reading partially, but metadata is at the end of the file. This would require buffering the entire file in memory, leading to a leak. Remotion does not currently support this scenario, make sure to pass a source that supports Content-Range.',+ );}- throw new Error(- 'Source does not support reading partially, but metadata is at the end of the file. This would require buffering the entire file in memory, leading to a leak. Remotion does not currently support this scenario, make sure to pass a source that supports Content-Range.',- );+ // Will first read the end and then return+ state.iso.setShouldReturnToVideoSectionAfterEnd(true);++ return makeSkip(videoSection.size + videoSection.start);}if (!state.iso.flatSamples.getSamples()) {diff --git a/packages/media-parser/src/containers/iso-base-media/parse-boxes.ts b/packages/media-parser/src/containers/iso-base-media/parse-boxes.tsindex 85d80aa191..506a0af0d7 100644--- a/packages/media-parser/src/containers/iso-base-media/parse-boxes.ts+++ b/packages/media-parser/src/containers/iso-base-media/parse-boxes.ts@@ -32,7 +32,6 @@ export const parseIsoBaseMedia = async () {state.iso.setShouldReturnToVideoSectionAfterEnd(false);- // TODO: Be smart about skipToreturn makeSkip(state.videoSection.getVideoSection().start);}