<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>231903</bug_id>
          
          <creation_ts>2021-10-18 09:50:31 -0700</creation_ts>
          <short_desc>Webrtc video streams in portrait have a black background in landscape</short_desc>
          <delta_ts>2021-10-20 03:51:12 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebRTC</component>
          <version>Safari 15</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>229792</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Davy De Durpel">davy.de.durpel</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>daginge</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1805629</commentid>
    <comment_count>0</comment_count>
    <who name="Davy De Durpel">davy.de.durpel</who>
    <bug_when>2021-10-18 09:50:31 -0700</bug_when>
    <thetext>As of iOS 15 there&apos;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)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1805891</commentid>
    <comment_count>1</comment_count>
    <who name="Dag-Inge Aas">daginge</who>
    <bug_when>2021-10-18 23:21:54 -0700</bug_when>
    <thetext>Duplicate of 229792. Possibly fixed in 15.1 Beta 3, but haven&apos;t verified this myself yet. That bug also contains a workaround if you haven&apos;t found one already!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1806559</commentid>
    <comment_count>2</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-10-20 03:51:12 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 229792 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>