Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(QrcodeStream): iOS 15 won't render camera
When a camera stream is loaded, we assign the stream to a `video` element via `video.srcObject`. At this point the element is hidden with `v-show="false"` aka. `display: none`. We do that because at this point the videos dimensions are not known yet. We have to wait for the `loadeddata` event first. Only after that event we display the video element. Otherwise the elements size awkwardly flickers. However, it appears since iOS 15 all iOS browsers won't properly render the video element if the `video.srcObject` was assigned *while* the element was hidden with `display: none`. Using `visibility: hidden` instead seems to have fixed the problem though. Issue: #264 #266
- Loading branch information