Bug 262618

Summary: REGRESSION (iOS 17): Browser changes video stream track constraints (width, height, aspect ratio) regardless of requested constraints
Product: WebKit Reporter: Zach Rattner <zach>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: artemzt25, tiana, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: iPhone / iPad   
OS: iOS 17   
Attachments:
Description Flags
Screen orientation changes causing UI issues in iOS 17 none

Description Zach Rattner 2023-10-04 08:31:24 PDT
Created attachment 468063 [details]
Screen orientation changes causing UI issues in iOS 17

We are seeing a new issue in iOS 17 where requested constraints (width, height, aspect ratio) are being ignored. This happens in two scenarios: 

1. On video stream initialization
2. On device orientation change

The issue only affects the display in the UI. If you record video, the resulting file is not distorted. But if you do not handle iOS 17 specifically, code that used to work in iOS 16 results in a bad UI. See attached video as an example.

It looks like the browser makes a copy of the track and changes its parameters at its discretion. It is possible to work around this in the UI, but some more info on whether this change in behavior was expected or a bug would be helpful.
Comment 1 Zach Rattner 2023-10-04 10:01:58 PDT
@youennf Curious if you are already aware of this?
Comment 2 Radar WebKit Bug Importer 2023-10-04 11:58:47 PDT
<rdar://problem/116478146>
Comment 3 youenn fablet 2023-11-10 02:50:41 PST
Thanks Zach, I believe this will be fixed by PR for bug 259364.

*** This bug has been marked as a duplicate of bug 259364 ***