A webpage containing video
element with src
attribute set to a Data URI containing a video file does not play the video in Safari on iOS 15.
Inspecting the device/simulator with Safari Dev Tools suggests the browser repeatedly issues requests with Range: bytes N-M
headers, reading the whole video file multiple times, leading to huge memory consumption and eventual failure to start the playback.
If the video is small enough and does manage to start, the playback appears sluggish and takes enormous time to even start.
Is there any workaround for this problem?
P.S. Keeping the video in Data URI is inherent to the task I am trying to solve, so please refrain from suggesting to keep the video file as a separate resource :)