I'm trying to embed an mp4 file on a page using the following HTML:
<video controls width="600">
<source src="/media/video.mp4" type="video/mp4">
</video>
The video file is being served by a Starlette FileResponse
.
I'm getting this error in Safari:
It looks to me like Safari is trying to make an HTTP range request in order to stream the video - but Starlette doesn't support that option.
I tried adding accept-ranges: none
as a response header but that didn't seem to fix the problem.
So... it would be great if Starlette could handle range requests so you could use it to serve video files to Safari!
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too