<?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>245428</bug_id>
          
          <creation_ts>2022-09-20 08:41:31 -0700</creation_ts>
          <short_desc>Safari 16 cannot play WebM Opus from blob URL (breaks Construct 3)</short_desc>
          <delta_ts>2025-04-21 08:59:13 -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>Media</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=258713</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=270772</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=272502</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ashley Gullen">ashley</reporter>
          <assigned_to name="Jean-Yves Avenard [:jya]">jean-yves.avenard</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>brad</cc>
    
    <cc>cdumez</cc>
    
    <cc>guhenke</cc>
    
    <cc>jean-yves.avenard</cc>
    
    <cc>jer.noble</cc>
    
    <cc>jgomez</cc>
    
    <cc>martinpierce1310</cc>
    
    <cc>mustafa.0x</cc>
    
    <cc>randalllhall</cc>
    
    <cc>rniwa</cc>
    
    <cc>tomac</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1899826</commentid>
    <comment_count>0</comment_count>
    <who name="Ashley Gullen">ashley</who>
    <bug_when>2022-09-20 08:41:31 -0700</bug_when>
    <thetext>Safari 16 on macOS appears to have support for playback of WebM Opus in the HTML &lt;audio&gt; element. However it does not work if passed a blob: URL.

Minimal repro: https://downloads.scirra.com/labs/bugs/webmblob/

Click &quot;Play normally&quot; and it will play from a normal filename. Click &quot;Play from blob URL&quot; and it will play from fetching the same file as a blob, calling URL.createObjectURL(blob), and playing that URL.

Observed result: clicking &quot;Play from blob URL&quot; does not play any audio. It also logs an error event in the console.

Expected result: it should still support playing from a blob URL. It works in Chrome, and it also works in Safari 16 if playing an MP4 (AAC) audio file. It appears only WebM Opus playback is broken when using a blob URL.

Our commercial web app Construct (www.construct.net) relies on playing audio from blob URLs in several places (especially when the user previews their project). Based on feature-detection for WebM Opus it has switched over to using built-in playback in Safari 16, but playback is now broken. Please fix it ASAP.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1899907</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-20 12:28:36 -0700</bug_when>
    <thetext>I am able to reproduce this issue in Safari 16 and Safari Technical Preview 153 does not play audio from blob URL based on Comment 0 test case.

Although, I know there are fixes in Webkit ToT recently, will this be fixed? Appreciate if someone can look into it. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1899984</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-09-20 18:26:21 -0700</bug_when>
    <thetext>The behavior on this test case appears to be identical on Safari 15.6.1, so this isn&apos;t a Safari 16 regression AFAICT.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1900006</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-09-20 20:39:38 -0700</bug_when>
    <thetext>&lt;rdar://problem/100205028&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1900086</commentid>
    <comment_count>4</comment_count>
    <who name="Ashley Gullen">ashley</who>
    <bug_when>2022-09-21 04:54:50 -0700</bug_when>
    <thetext>It&apos;s not really clear to me at the moment to what extent Safari is supposed to support WebM Opus - for example support appears to be inconsistent between macOS and iOS (see issue 238546). Perhaps there are other device specific requirements? I haven&apos;t seen any documentation covering this so it&apos;s hard to know if or where WebM Opus playback is meant to work in the first place.

We have a WebAssembly WebM Opus decoder as backup if canPlayType(&quot;audio/webm;codecs=opus&quot;) returns an empty string, so the result of calling that will affect whether our code switches over to built-in support and gets affected by this bug. Perhaps this regressed in an earlier release and I didn&apos;t notice yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1939191</commentid>
    <comment_count>5</comment_count>
    <who name="">mustafa.0x</who>
    <bug_when>2023-03-06 11:33:56 -0800</bug_when>
    <thetext>Same or similar bug: fails with caf opus files, but only on iOS. It works fine on macOS. This bit me hard.

The same file plays fine via URL.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1984274</commentid>
    <comment_count>6</comment_count>
    <who name="Ashley Gullen">ashley</who>
    <bug_when>2023-10-11 06:00:15 -0700</bug_when>
    <thetext>This still reproduces for me in Safari 17.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2020047</commentid>
    <comment_count>7</comment_count>
    <who name="Ashley Gullen">ashley</who>
    <bug_when>2024-03-11 04:50:01 -0700</bug_when>
    <thetext>This still reproduces in Safari 17.4 which is meant to now have full support for WebM, but this issue still blocks us using WebM in Safari.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2020736</commentid>
    <comment_count>8</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2024-03-13 09:14:44 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/25820</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2021001</commentid>
    <comment_count>9</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2024-03-14 07:02:10 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/25883</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2021219</commentid>
    <comment_count>10</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-03-14 21:14:55 -0700</bug_when>
    <thetext>Committed 276136@main (a7b863a49945): &lt;https://commits.webkit.org/276136@main&gt;

Reviewed commits have been landed. Closing PR #25820 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2025298</commentid>
    <comment_count>11</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2024-04-01 19:39:40 -0700</bug_when>
    <thetext>*** Bug 270772 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2028472</commentid>
    <comment_count>12</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2024-04-15 04:15:28 -0700</bug_when>
    <thetext>*** Bug 272502 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>