<?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>299164</bug_id>
          
          <creation_ts>2025-09-19 02:18:58 -0700</creation_ts>
          <short_desc>REGRESSION (iOS 26): MediaRecorder produces corrupted video/audio files, resulting in some loss of content</short_desc>
          <delta_ts>2025-11-18 09:46:54 -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 26</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 26</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="liuyun">liuyun</reporter>
          <assigned_to name="Jean-Yves Avenard [:jya]">jean-yves.avenard</assigned_to>
          <cc>ap</cc>
    
    <cc>axel.ballarin</cc>
    
    <cc>jer.noble</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2144296</commentid>
    <comment_count>0</comment_count>
    <who name="liuyun">liuyun</who>
    <bug_when>2025-09-19 02:18:58 -0700</bug_when>
    <thetext>Hello WebKit Team,

We are writing to report a critical regression in the MediaRecorder API behavior observed in the iOS 26 beta. 
This issue is causing critical failures in our application, as well as in several other third-party libraries we have tested. After recording audio or video, the playback duration is significantly shorter than expected. For instance, a one-minute recording might only have 20 seconds captured correctly, with the remaining 40 seconds of content being lost.

We are unsure how to resolve this problem and would appreciate your confirmation and guidance. 

Thank you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2144584</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2025-09-19 19:08:06 -0700</bug_when>
    <thetext>Thank you for the report! Could you please provide more information to make it actionable? E.g.
- whether this reproduces with iOS 26 release;
- a URL and steps for us to reproduce this;
- which hardware models you have seen this with.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2144585</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-09-19 19:08:12 -0700</bug_when>
    <thetext>&lt;rdar://problem/160982017&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2144757</commentid>
    <comment_count>3</comment_count>
    <who name="liuyun">liuyun</who>
    <bug_when>2025-09-21 19:57:07 -0700</bug_when>
    <thetext>Thank you for your reply.

-Yes, this issue occurs in iOS 26 release.

-I&apos;ve provided a URL that demonstrates the problem：
  &lt;https://addpipe.com/media-recorder-api-demo-audio&gt;
  when you click on the video at this URL, the resulting MP4 file, which should be one minute long, only has 29 seconds of footage.

-I encountered this issue on my iPhone 13 Pro.
  I haven&apos;t observed this problem on Android devices or another versions of iOS (18).

Thank you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2145999</commentid>
    <comment_count>4</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2025-09-25 15:45:13 -0700</bug_when>
    <thetext>Is this unique to MP4 or does it happen when recording in WebM as well?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2146030</commentid>
    <comment_count>5</comment_count>
    <who name="liuyun">liuyun</who>
    <bug_when>2025-09-25 18:13:35 -0700</bug_when>
    <thetext>Thanks for your reply.
-Yes, I&apos;ve only found issues with MP4. I&apos;ve tested WebM and found no issues. It&apos;s recording in WebM  fine.
Thank you!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2146204</commentid>
    <comment_count>6</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2025-09-26 09:51:48 -0700</bug_when>
    <thetext>It looks like this is not unique to iOS; I can reproduce the same problem on macOS Safari 26, and only when the output file is .mp4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2146205</commentid>
    <comment_count>7</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2025-09-26 09:52:25 -0700</bug_when>
    <thetext>It also looks like it&apos;s the _end_ of the recording that&apos;s missing. A 30 second recording where I&apos;m just listing numbers from 1-30 will cut off at around 15.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2147306</commentid>
    <comment_count>8</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2025-09-30 15:08:27 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/51596</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2147503</commentid>
    <comment_count>9</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-10-01 05:52:55 -0700</bug_when>
    <thetext>Committed 300824@main (812a4cd88295): &lt;https://commits.webkit.org/300824@main&gt;

Reviewed commits have been landed. Closing PR #51596 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2151908</commentid>
    <comment_count>10</comment_count>
    <who name="liuyun">liuyun</who>
    <bug_when>2025-10-16 19:15:05 -0700</bug_when>
    <thetext>Hello WebKit Team,

Thank you for your prompt reply.
It seems the issues mentioned above have been fixed, is that correct? 
I haven&apos;t seen an iOS version update yet. 
May I ask when this fix is approximately scheduled for release?

Thank you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2159544</commentid>
    <comment_count>11</comment_count>
    <who name="Axel">axel.ballarin</who>
    <bug_when>2025-11-18 02:05:52 -0800</bug_when>
    <thetext>Hello WebKit Team

We are still encountering this issue on iOS 26.1: when using the MediaRecorder API, only the first 20–30 seconds of the recording are present in the final file. The behavior matches the original report for this bug.

I have not seen any reference to the associated fix in the release notes for iOS 26.1 or for the iOS 26.2 Beta 3 builds. Could you provide any information on whether the fix has been included in the 26.x branch, or when it is expected to ship?

Thanks for looking into this</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2159623</commentid>
    <comment_count>12</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2025-11-18 09:46:54 -0800</bug_when>
    <thetext>Thank you for the follow up, this should be fixed in 26.2 beta 3 (probably earlier betas too).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>