Python http.server did not support Range Request

Problems that occurred

When I set up a server on my local PC and tried to open and play a video from iOS Safari, I couldn't play it for some reason ... I can play it from Firefox on my PC ...

I found an article like this when I searched on Google [HTML5] mp4 with embedded video tag cannot be played in Safari on iOS because it is interlaced In other words, the video system is not good. However, it was a progress method instead of an interlace method. I tried re-encoding with FFmpeg, but it didn't change. At the end of the article, there is an additional note that it may be another cause, and I arrive at this article. [MP4] Solved the problem that MP4 videos cannot be played in Safari The first is that it doesn't even use the video element in the first place. Second, there is a link to another article, and the title is "When displaying a video in Safari, the server must support HTTP Range Request" and supports Range Request. If you confirm that you haven't done that ... **that? Doesn't it correspond? ** ** That's why. In the first place, http.server is probably for testing such as scraping, and there was no problem even if it did not correspond to Range Request.

approach

~~ ** After all Apache is the strongest ** ~~

Recommended Posts

Python http.server did not support Range Request
[Python] Tensorflow 2.0 did not support Python 3.8, so the story of downgrading Python
Did not change from Python 2 to 3
About python, range ()
python> link> range () / xrange ()
Http request in python
Python Not Implemented Error
The story that `while queue` did not work in python
Python error support note: "... does not support argument 0 of type float ..."