<?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>260787</bug_id>
          
          <creation_ts>2023-08-28 03:10:32 -0700</creation_ts>
          <short_desc>REGRESSION (Safari 17 beta): Cannot recover video play once set srcObject to null</short_desc>
          <delta_ts>2023-08-29 08:05:39 -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 17</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>258723</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="simu">seimor</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>jer.noble</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1973899</commentid>
    <comment_count>0</comment_count>
    <who name="simu">seimor</who>
    <bug_when>2023-08-28 03:10:32 -0700</bug_when>
    <thetext>At safari 17, I encounter a problem:

When I capture video-stream from local camera, and set it to video&apos;s srcObject

The video play normally

Then I set srcObject to null and then set stream back

The video will not play.

----------------------------------------------

You can reproduce it at webrtc sample website.

1. Open : https://webrtc.github.io/samples/src/content/getusermedia/gum/
2. Click open camera button
3. Open dev-tools
4. Run code: const video = document.querySelector(&apos;video&apos;)
5. Run code: video.srcObject = null
6. Run code: video.srcObject = stream

Finally, The video will not play even if you call video.play(). But it is fine at safari older version(such as safari 16)

Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1973900</commentid>
    <comment_count>1</comment_count>
    <who name="simu">seimor</who>
    <bug_when>2023-08-28 03:11:56 -0700</bug_when>
    <thetext>If you update video&apos;s css attribute like height, the video will play again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1974153</commentid>
    <comment_count>2</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-08-29 00:19:20 -0700</bug_when>
    <thetext>This should be fixed now in trunk and iOS seeds.

*** This bug has been marked as a duplicate of bug 258723 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1974222</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2023-08-29 08:05:39 -0700</bug_when>
    <thetext>Bug 258723 was fixed in developer beta 4 released on 7/31/2023. Please let us know if this is still happening.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>