<?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>230624</bug_id>
          
          <creation_ts>2021-09-22 06:28:44 -0700</creation_ts>
          <short_desc>MediaStream canvas.captureStream() for Canvas element provides frames too late</short_desc>
          <delta_ts>2021-10-01 03:25:32 -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>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=230613</see_also>
          <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="Kimmo Kinnunen">kkinnunen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1796046</commentid>
    <comment_count>0</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-09-22 06:28:44 -0700</bug_when>
    <thetext>MediaStream canvas.captureStream() for Canvas element provides frames too late

To observe, obtain bug 230613 testcase mediastream-canvas-to-video.html

When canvas draws, the frame should go to the video.
Instead it doesn&apos;t go anywhere.
When the canvas draws a new frame, previous frame goes to video.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1798295</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-09-29 06:29:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/83668648&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1799218</commentid>
    <comment_count>2</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-10-01 02:56:43 -0700</bug_when>
    <thetext>Will be fixed by bug 231022

*** This bug has been marked as a duplicate of bug 231022 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1799221</commentid>
    <comment_count>3</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-10-01 03:12:59 -0700</bug_when>
    <thetext>Scratch that, probably too risky. Should fix it separately</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1799223</commentid>
    <comment_count>4</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-10-01 03:25:32 -0700</bug_when>
    <thetext>The frame should be captured and provided to video element during canvas display buffer preparation. However, at that moment the tree is already laid out. Submitting a frame will cause needs-layout assertion.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>