<?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>266686</bug_id>
          
          <creation_ts>2023-12-20 01:21:54 -0800</creation_ts>
          <short_desc>Setting video src to MediaStream and resizing the video via style results in flickering</short_desc>
          <delta_ts>2024-12-13 00:32:56 -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>Media</component>
          <version>Safari 17</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>259364</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=266688</see_also>
          <bug_file_loc>https://www.bilibili.com/video/BV17Q4y1u7MS/</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="Fate">fategemini1</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>ddp.bkdn</cc>
    
    <cc>jean-yves.avenard</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2000973</commentid>
    <comment_count>0</comment_count>
    <who name="Fate">fategemini1</who>
    <bug_when>2023-12-20 01:21:54 -0800</bug_when>
    <thetext>Below is the minimal reproducible code snippet that demonstrates the issue:

```
&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
    &lt;meta charset=&quot;UTF-8&quot; /&gt;
    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;
    &lt;title&gt;test safari 17 bug&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;button id=&quot;btn1&quot;&gt;camera&lt;/button&gt;
    &lt;video
      id=&quot;video&quot;
      style=&quot;
        width: 600px;
        height: 600px;
        transform-origin: top left;
        transition: all 0.3s ease;
      &quot;
      controls
      autoplay
      playsinline
      webkit-playsinline
    &gt;&lt;/video&gt;
    &lt;button id=&quot;btn2&quot;&gt;zoom&lt;/button&gt;
    &lt;script&gt;
      btn1.onclick = function () {
        navigator.mediaDevices
          .getUserMedia({
            video: true,
          })
          .then((stream) =&gt; {
            video.srcObject = stream;
          });
      };
      btn2.onclick = function () {
        video.style.width = video.style.width === &apos;300px&apos; ? &apos;600px&apos; : &apos;300px&apos;;
        video.style.height = video.style.height === &apos;300px&apos; ? &apos;600px&apos; : &apos;300px&apos;;
      };
    &lt;/script&gt;
  &lt;/body&gt;
&lt;/html&gt;
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2001109</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-12-20 11:09:09 -0800</bug_when>
    <thetext>Original title: I am experiencing an issue on Safari 17 where using Video srcObject = MediaStream(WebRTC) to play a particular captured video stream, and resizing it via style settings for width and height, results in the rendered video flickering. (edit)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2001110</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-12-20 11:09:26 -0800</bug_when>
    <thetext>&lt;rdar://problem/119944578&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2001141</commentid>
    <comment_count>3</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-12-20 12:26:57 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 259364 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2001143</commentid>
    <comment_count>4</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-12-20 12:27:15 -0800</bug_when>
    <thetext>This should work now in latest Safari Tech Preview.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2001251</commentid>
    <comment_count>5</comment_count>
    <who name="Fate">fategemini1</who>
    <bug_when>2023-12-20 18:59:41 -0800</bug_when>
    <thetext>Could you please inform me when the bug fix is expected to be merged into the release version, and on which version it will be released?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2002465</commentid>
    <comment_count>6</comment_count>
    <who name="Fate">fategemini1</who>
    <bug_when>2024-01-01 19:07:27 -0800</bug_when>
    <thetext>This issue still persists in iOS 17.2.1/MacOS 14.1.1 systems.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2055791</commentid>
    <comment_count>7</comment_count>
    <who name="PhungDuong">ddp.bkdn</who>
    <bug_when>2024-08-27 18:04:57 -0700</bug_when>
    <thetext>Dear @youenn fablet

This issue still persists in iOS 17.6.1
Please reopen this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2081450</commentid>
    <comment_count>8</comment_count>
    <who name="PhungDuong">ddp.bkdn</who>
    <bug_when>2024-12-13 00:32:56 -0800</bug_when>
    <thetext>Bug is still reproducible on iOS/iPad 18.2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>