or
https://bugs.webkit.org/show_bug.cgi?id=330932
Created attachment 482264 [details] Repro: preview shrinks after the second getUserMedia on the same <video> (iOS 27)
Since iOS 27, assigning a second getUserMedia camera stream to a <video> element that is already showing one makes Safari paint the preview at about 56% of its size, centred in the element. The <video> element keeps its full size; only the painted picture shrinks.
Reproduces every time with the attached repro.html.
Environment:
Regression: only iOS 27 is affected. Not reproducible on:
Steps to reproduce:
Expected result: The preview fills the width of the box again, just as after step 2.
Actual result: The preview is painted at about 56% of its width and height, centred in the box, with the box background visible around it. It stays that way and does not recover.
Everything the page can measure stays correct after the second start: videoWidth/videoHeight are 720x1280, the element box is 390x693 and the track settings are 720x1280 (log below). So layout is correct and only the rendering of the frame is wrong.
The painted size (about 219x390 CSS px) matches the 1280x720 landscape camera buffer being fitted into the 390x693 element first (390x219) and rotated by 90 degrees afterwards (219x390). The ratio is exactly 720/1280 = 0.5625. The renderer seems to scale the unrotated buffer and apply the rotation separately.
Log output from the attached page: resize event: videoWidth/Height 720x1280, element 390x693, track 720x1280 start #1: videoWidth/Height 720x1280, element 390x693, track 720x1280 500 ms after start #1: videoWidth/Height 720x1280, element 390x693, track 720x1280 resize event: videoWidth/Height 720x1280, element 390x693, track 720x1280 start #2: videoWidth/Height 720x1280, element 390x693, track 720x1280 500 ms after start #2: videoWidth/Height 720x1280, element 390x693, track 720x1280
Attachments: