<?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>231365</bug_id>
          
          <creation_ts>2021-10-07 09:37:27 -0700</creation_ts>
          <short_desc>REGRESSION (iOS 15.1 beta): Returning to a black screen with peer connection after backgrounding Safari</short_desc>
          <delta_ts>2022-02-12 19:34:29 -0800</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>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Virginia Farley">vfarley</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>Kongpheng.Nanthavongsa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1801626</commentid>
    <comment_count>0</comment_count>
    <who name="Virginia Farley">vfarley</who>
    <bug_when>2021-10-07 09:37:27 -0700</bug_when>
    <thetext>After setting up a RTCPeerConnection in Safari 15, if you switch to another application and then return back to the website, the video screens are black.  This behavior can be seen on the https://webrtc.github.io/samples/src/content/peerconnection/pc1/ sample page.

The steps to reproduce this bug are:
1. Open https://webrtc.github.io/samples/src/content/peerconnection/pc1/ 
2. Click the &quot;Start&quot; button, allow microphone and camera access when prompted, then press the &quot;Call&quot; button
3. Switch to another application for 3-5 seconds
4. Return to the Safari and observe that both video screens are black 

Expected behavior: After backgrounding Safari and coming back, video resumes. 

Able to reproduce with iOS 15.1 beta. Unable to reproduce with iOS 15.0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1802675</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-10-11 10:09:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/84104294&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1808708</commentid>
    <comment_count>2</comment_count>
    <who name="Kongpheng">Kongpheng.Nanthavongsa</who>
    <bug_when>2021-10-25 18:37:07 -0700</bug_when>
    <thetext>I was able to reproduce this issue too on iOS 15.1 (19B74).

Alternate reproduction steps:
* Open https://webrtc.github.io/samples/src/content/peerconnection/pc1/
* Click Start button
* Grant access to microphone and camera
* Notice video is captured
* Make a call to the iPhone
* From Call UI dialog, decline it
* Notice that video doesn&apos;t get auto-resumed, instead you see a black rectangle where video used to be

Full disclosure: I shared the same steps in https://bugs.webkit.org/show_bug.cgi?id=230922 cause I don&apos;t know if the two bugs are related.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1840808</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-02-12 19:34:29 -0800</bug_when>
    <thetext>This should now be fixed in iOS 15.3</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>