🎥 Make videos programmatically with React
more reasons for non seekable media
Jonny Burger45bd634608cd
diff --git a/packages/core/src/warn-about-non-seekable-media.ts b/packages/core/src/warn-about-non-seekable-media.tsindex 07ab798113..c28536a3dd 100644--- a/packages/core/src/warn-about-non-seekable-media.ts+++ b/packages/core/src/warn-about-non-seekable-media.ts@@ -25,7 +25,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 ${ref.src} cannot be seeked. This could be one of two reasons: 1) The media resource was replaced while the video is playing but it was not loaded yet. 2) The media does not support seeking. Please see https://remotion.dev/docs/non-seekable-media for assistance.`;+ const msg = [+ `The media ${ref.src} cannot be seeked. This could be one of few reasons:`,+ '1) The media resource was replaced while the video is playing but it was not loaded yet.',+ '2) The media does not support seeking.',+ '3) The media was loaded with security headers prventing it from being included.',+ 'Please see https://remotion.dev/docs/non-seekable-media for assistance.',+ ].join('\n');if (type === 'console-error') {// eslint-disable-next-line no-consolediff --git a/packages/docs/docs/non-seekable-media.md b/packages/docs/docs/non-seekable-media.mdindex d243bcf6bc..117f6ba9ae 100644--- a/packages/docs/docs/non-seekable-media.md+++ b/packages/docs/docs/non-seekable-media.md@@ -60,6 +60,20 @@ You can verify that this is the problem by opening the video or audio in a new tYou can determine if a video supports seeking, you can use the [`getVideoMetadata()`](/docs/renderer/get-video-metadata) function.+<Step>3</Step> Media was prevented from being loaded into a video tag.++The following headers can prevent a file from being included:++- `X-Frame-Options: DENY`+- `X-Frame-Options: SAMEORIGIN`+- `X-Frame-Options: ALLOW-FROM https://example.com/`+- `Content-Security-Policy: frame-ancestors 'none'`+- `Content-Security-Policy: frame-ancestors 'self'`+- `Content-Security-Policy: frame-ancestors https://example.com/`+- `Cross-Origin-Resource-Policy: same-origin`++Those videos files cannot be loaded due to policy from the server.+## SolutionsConsider one of these solutions: