Bug 231903

Summary: Webrtc video streams in portrait have a black background in landscape
Product: WebKit Reporter: Davy De Durpel <davy.de.durpel>
Component: WebRTCAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Major CC: daginge, youennf
Priority: P2    
Version: Safari 15   
Hardware: iPhone / iPad   
OS: Unspecified   

Description Davy De Durpel 2021-10-18 09:50:31 PDT
As of iOS 15 there's a black background behind the video element of a WebRTC stream when holding the phone in portrait.  The black background appears to be the same size as the video element but rendered in landscape.

You can easily see this effect by opening this demo from the WebRTC site:
https://webrtc.github.io/samples/src/content/getusermedia/resolution/

I have this issue on an iPhone Xs running iOS 15.0.2.
I have no idea if it occurs on other devices.

A side effect seems to be that some of the width and height parameters are the ones of the black background (I will need to do some extra debugging in the OpenTok library to confirm this)
Comment 1 daginge 2021-10-18 23:21:54 PDT
Duplicate of 229792. Possibly fixed in 15.1 Beta 3, but haven't verified this myself yet. That bug also contains a workaround if you haven't found one already!
Comment 2 youenn fablet 2021-10-20 03:51:12 PDT

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