<?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>226698</bug_id>
          
          <creation_ts>2021-06-06 09:24:10 -0700</creation_ts>
          <short_desc>Manually resuming a video after phone call prevents other videos in a session from resuming</short_desc>
          <delta_ts>2022-11-13 18:39:43 -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 14</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kongpheng">Kongpheng.Nanthavongsa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ddp.bkdn</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1767220</commentid>
    <comment_count>0</comment_count>
    <who name="Kongpheng">Kongpheng.Nanthavongsa</who>
    <bug_when>2021-06-06 09:24:10 -0700</bug_when>
    <thetext>I was able to reproduce this issue on iOS Safari 14.7 (18G5023c).

To reproduce:
* Using iOS Safari, go to https://webrtc.github.io/samples/src/content/peerconnection/pc1/
* On the console, enter: var video = $(&apos;#remoteVideo&apos;); video.onpause = () =&gt; { console.log(&apos;paused; resuming play&apos;); video.play(); }
* Click Start button.  If prompted for access for camera and microphone, then grant access
* Click Call button to start the one-to-one video call
* Using another phone, call the iPhone iOS Safari is running on
* From iPhone iOS Safari is running on, reject the call
* Notice that only one of the videos resumes.  The other does not.

We have a potential workaround for this issue.  Initial testing looks OK.  That said, will need to test more thoroughly.  The heuristic:
* When the pause event is dispatched after a phone call ends, check &quot;paused&quot; state of all video elements in application
* If other videos are paused as well, then they were likely paused because a phone call just ended
* Call play() on all video elements to ensure they&apos;re all resumed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1769268</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-06-13 09:25:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/79261528&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>