remotion-dev / remotion

🎥 Make videos programmatically with React
https://remotion.dev
Other
19.59k stars 955 forks source link

`@remotion/media-utils`: Improve error handling when passing a bad video file #3940

Closed JonnyBurger closed 1 month ago

JonnyBurger commented 1 month ago

Previous:

An error occurred:
Error MediaError
An error occurred:
Error  Error: Failed to execute getAudioDurationInSeconds(): Received a 404 error loading "/sites/testbed-v6/public/iphone-.mov". Correct the URL of the file.

at ../media-utils/dist/media-tag-error-handling.js:49
47 │ })
48 │     .then((status) => {
49 │     const err = status === 404
50 │         ? new Error([
51 │             `Failed to execute ${api}: Received a 404 error loading "${src}".`,
52 │             'Correct the URL of the file.',
vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
bugs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 30, 2024 8:23am
remotion ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 30, 2024 8:23am