<?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>245056</bug_id>
          
          <creation_ts>2022-09-11 15:34:41 -0700</creation_ts>
          <short_desc>Audio element displays Error when using Blob URL as src</short_desc>
          <delta_ts>2022-09-16 19:10:14 -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>Web Audio</component>
          <version>Safari 15</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 12</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>198015</dup_id>
          
          <bug_file_loc>https://github.com/tedsecretsource/sound-test</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="Ted Stresen-Reuter">ted</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>beidson</cc>
    
    <cc>cdumez</cc>
    
    <cc>jer.noble</cc>
    
    <cc>rniwa</cc>
    
    <cc>ted</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1897747</commentid>
    <comment_count>0</comment_count>
    <who name="Ted Stresen-Reuter">ted</who>
    <bug_when>2022-09-11 15:34:41 -0700</bug_when>
    <thetext>Blob URLs fail as src attributes for Audio elements if the URLs are created without the second (optional) parameter.


## Expected behavior:

Given I have valid stream data created by MediaRecorder
When I create a new Blob
    AND I create a Blob URL
    AND I use the URL as the src attribute for an Audio element with the controls attribute
Then I can play (and hear) the recorded audio

## Actual behavior:

Given I have valid stream data created by MediaRecorder
When I create a new Blob
    AND I create a Blob URL
    AND I use the URL as the src attribute for an Audio element with the controls attribute
Then I can&apos;t play the recorded audio
    AND I _can_ see the word &quot;Error&quot; on the Audio element

I&apos;ve provided [a working example in this repository](https://github.com/tedsecretsource/sound-test) and provided more information on problem and the workaround in the READMEs (one at the root level and one in the src/tests folder).

Basically, the bottom line is, at present the second parameter (options) of `new Blob(stream, {type: &apos;audio/mp4&apos;})` is required. Leaving it blank should work because it is marked as optional in the MDN documentation and a functional default should be provided. At present, leaving it blank can and does result in the Actual Behavior described above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1897748</commentid>
    <comment_count>1</comment_count>
    <who name="Ted Stresen-Reuter">ted</who>
    <bug_when>2022-09-11 15:36:43 -0700</bug_when>
    <thetext>Added repo that describes in detail the issue and workaround.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1897764</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-09-11 19:58:08 -0700</bug_when>
    <thetext>&lt;rdar://problem/99806427&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1899133</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-09-16 19:10:14 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 198015 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>