fix: fix video rendering on some iOS devices by switching to mp4 #1421
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changed? Why?
We had an issue where some
webm
files were not loading on certain iOS devices (not all, and seemingly not dependent on iOS version).After testing, I was able to figure out that our
webm
files were encodedcodec_name=vp9
; when I converted this toVP8
, it was supported on iOS simulators and in other browsers. The issue with VP8 files that I generated was that they were far too big in size [reference].My next approach was to use a
mp4
file with aposter
attribute, but this sometimes causes a flicker once the user tries to play the video and it transitions from the poster to the video.Finally, I've settled on using
mp4
s, which are not much bigger than the originalwebm
files, and setting the timestamp to 0.001 in lieu of using aposter
attribute.Notes to reviewers
How has it been tested?