🎥 Make videos programmatically with React
improve docs and error message
Jonny Burger82655602e6b1
diff --git a/packages/core/src/warn-about-non-seekable-media.ts b/packages/core/src/warn-about-non-seekable-media.tsindex 51516d980d..576e1eb17b 100644--- a/packages/core/src/warn-about-non-seekable-media.ts+++ b/packages/core/src/warn-about-non-seekable-media.ts@@ -21,13 +21,13 @@ export const warnAboutNonSeekableMedia = (const range = {start: ref.seekable.start(0), end: ref.seekable.end(0)};if (range.start === 0 && range.end === 0) {- const msg = `The media does not seem to support seeking. Remotion cannot properly handle it. Please see https://remotion.dev/docs/non-seekable-media for assistance. Source: ${ref.src}`;+ const msg = `The media does not support seeking. Remotion cannot properly render it. Please see https://remotion.dev/docs/non-seekable-media for assistance. Source: ${ref.src}`;if (type === 'console-error') {console.error(msg);} else if (type === 'console-warning') {console.warn(- `The media ${ref.src} does not seem to support seeking. The video will render fine, but may not play correctly in preview and in the <Player> See https://remotion.dev/docs/non-seekable-media for an explanation.`+ `The media ${ref.src} does not support seeking. The video will render fine, but may not play correctly in preview and in the <Player>. See https://remotion.dev/docs/non-seekable-media for an explanation.`);} else {throw new Error(msg);diff --git a/packages/docs/docs/non-seekable-media.md b/packages/docs/docs/non-seekable-media.mdindex 0b93015c40..2fde89d996 100644--- a/packages/docs/docs/non-seekable-media.md+++ b/packages/docs/docs/non-seekable-media.md@@ -6,14 +6,18 @@ title: Non-seekable mediaIf you see the following error in the console:```-The media [URL] does not seem to support seeking. Remotion cannot properly handle it. Please see https://remotion.dev/docs/non-seekable-media for assistance.+The media [URL] does not seem to support seeking.+Remotion cannot properly handle it.+Please see https://remotion.dev/docs/non-seekable-media for assistance.```-it means you have provided a video or audio that cannot be seeked to an arbitrary time.+## Meaning++It means you have provided a video or audio that cannot be seeked to an arbitrary time.The cause for this is that when requesting the media file, either:- No `Content-Range` HTTP header has been sent by the server, making it impossible for the browser and therefore for Remotion to seek the media.-- No `Content-Length` HTTP header has been sent by the server.+- No `Content-Length` HTTP header has been sent by the server, also preventing seeking.- The file does not support [Faststart](https://www.videoconverterfactory.com/tips/mp4-fast-start.html)## Reproduction