Bug 231903 - Webrtc video streams in portrait have a black background in landscape
Summary: Webrtc video streams in portrait have a black background in landscape
Status: RESOLVED DUPLICATE of bug 229792
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: Safari 15
Hardware: iPhone / iPad Unspecified
: P2 Major
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-18 09:50 PDT by Davy De Durpel
Modified: 2021-10-20 03:51 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***