Non-seekable media
If you see the following error in the console:
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-RangeHTTP header has been sent by the server, making it impossible for the browser and therefore for Remotion to seek the media.
- No Content-LengthHTTP header has been sent by the server, also preventing seeking.
- The file does not support Faststart
Reproduction
You can verify that this is the problem by opening the video or audio in a new tab and observe that you cannot seek the media.
Solutions
Choose one of those solutions:
- Serve the media from a webhost that supports the Rangeheader and returns aContent-LengthandContent-Rangeheader.
- Download the media and import it locally using an importorrequire()statement.
- Use the <OffthreadVideo>component which will render the video fine. You may still see problems during playback in the preview or the<Player>