<?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>203435</bug_id>
          
          <creation_ts>2019-10-25 14:37:29 -0700</creation_ts>
          <short_desc>REGRESSION(iOS 13): createMediaElementSource not working</short_desc>
          <delta_ts>2020-05-06 08:55:51 -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>Safari 13</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 13</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=211394</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Steven V.">icid.asset</reporter>
          <assigned_to name="Per Arne Vollan">pvollan</assigned_to>
          <cc>andrey</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>brianpeiris</cc>
    
    <cc>bruce</cc>
    
    <cc>chrisguttandin</cc>
    
    <cc>commit-queue</cc>
    
    <cc>contact</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>distinctdan</cc>
    
    <cc>emj2152</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>eric</cc>
    
    <cc>gfodor</cc>
    
    <cc>jer.noble</cc>
    
    <cc>jordy</cc>
    
    <cc>joseph.eugene</cc>
    
    <cc>luigi</cc>
    
    <cc>mbalyaba</cc>
    
    <cc>mcamis</cc>
    
    <cc>pvollan</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1584017</commentid>
    <comment_count>0</comment_count>
    <who name="Steven V.">icid.asset</who>
    <bug_when>2019-10-25 14:37:29 -0700</bug_when>
    <thetext>Audio elements connected to the Web Audio API using the `createMediaElementSource` function don&apos;t seem to work anymore on iOS 13.

Tested using this MDN example: https://mdn.github.io/webaudio-examples/media-source-buffer/
Last tested on iOS version: 13.1.3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1584261</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-10-26 11:59:25 -0700</bug_when>
    <thetext>&lt;rdar://problem/56647240&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1586490</commentid>
    <comment_count>2</comment_count>
    <who name="Greg Fodor">gfodor</who>
    <bug_when>2019-11-01 12:11:04 -0700</bug_when>
    <thetext>We use this API in Mozilla Hubs (https://hubs.mozilla.com) and noticed that iOS 13 users no longer can play videos. We traced it back to the videos being paused (and unable to play further) once we called createMediaElementSource.

Videos without audio continue to work fine, and if we do not call that API, videos with audio play through the main audio output. For us, it&apos;s important we wire the sound into the WebAudio API for proper attenuation, so playing through the normal method is not something we can switch to.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1600238</commentid>
    <comment_count>3</comment_count>
    <who name="Jordy van Dortmont">jordy</who>
    <bug_when>2019-12-19 05:42:01 -0800</bug_when>
    <thetext>Unfortunately we&apos;re running into the same issue at DialogueTrainer. We use this API animate the speech of 3D characters for our iOS 13 users. This completely ruins their user experience.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1600241</commentid>
    <comment_count>4</comment_count>
    <who name="Adam McAmis">mcamis</who>
    <bug_when>2019-12-19 06:00:20 -0800</bug_when>
    <thetext>I’m running into this same issue with an audio visualization app that worked fine in iOS12. Interesting that it’s not broken completely, the audio element will still show up on the lock screen widget for “Now Playing” albeit with no audio actually playing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1604164</commentid>
    <comment_count>5</comment_count>
    <who name="Eugene M. Joseph">joseph.eugene</who>
    <bug_when>2020-01-08 11:05:27 -0800</bug_when>
    <thetext>I&apos;m having the same issue with an audio visualization web app that doesn&apos;t work anymore in iOS13. Any progress or fixes for this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1604231</commentid>
    <comment_count>6</comment_count>
    <who name="Abe Shakim">emj2152</who>
    <bug_when>2020-01-08 12:26:34 -0800</bug_when>
    <thetext>Seconding all these comments. Please fix ASAP.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1606433</commentid>
    <comment_count>7</comment_count>
    <who name="">bruce</who>
    <bug_when>2020-01-14 09:25:25 -0800</bug_when>
    <thetext>I&apos;ve also been having the same issue since the release of iOS 13.  This functionality is needed because iOS doesn&apos;t support volume control on the audio element itself, so you need to create an element source and pipe it through a gain node.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1606670</commentid>
    <comment_count>8</comment_count>
      <attachid>387721</attachid>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2020-01-14 16:18:13 -0800</bug_when>
    <thetext>Created attachment 387721
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1606699</commentid>
    <comment_count>9</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2020-01-14 16:57:20 -0800</bug_when>
    <thetext>&lt;rdar://problem/57257358&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1606701</commentid>
    <comment_count>10</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2020-01-14 16:57:35 -0800</bug_when>
    <thetext>*** Bug 204261 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1606706</commentid>
    <comment_count>11</comment_count>
      <attachid>387721</attachid>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2020-01-14 17:04:00 -0800</bug_when>
    <thetext>Comment on attachment 387721
Patch

Thanks for reviewing!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1606743</commentid>
    <comment_count>12</comment_count>
      <attachid>387721</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2020-01-14 17:47:45 -0800</bug_when>
    <thetext>Comment on attachment 387721
Patch

Clearing flags on attachment: 387721

Committed r254550: &lt;https://trac.webkit.org/changeset/254550&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1606744</commentid>
    <comment_count>13</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2020-01-14 17:47:47 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1622572</commentid>
    <comment_count>14</comment_count>
    <who name="Maxim Balyaba">mbalyaba</who>
    <bug_when>2020-02-25 05:07:11 -0800</bug_when>
    <thetext>What iOS version has this fix ?
and what about https://bugs.webkit.org/show_bug.cgi?id=203293 ?
Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1622939</commentid>
    <comment_count>15</comment_count>
    <who name="dataexcess">contact</who>
    <bug_when>2020-02-26 02:19:58 -0800</bug_when>
    <thetext>When will this bug-fix be shipped? with which version?
Thnx</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1639771</commentid>
    <comment_count>16</comment_count>
    <who name="Eugene M. Joseph">joseph.eugene</who>
    <bug_when>2020-04-09 12:11:11 -0700</bug_when>
    <thetext>createMediaElementSource is still not working for me in iOS 13.4.1. Do we know which version will include the patch?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1639798</commentid>
    <comment_count>17</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-04-09 12:55:36 -0700</bug_when>
    <thetext>This issue was supposed to have been fixed in iOS 13.4. Could you please a new report with diagnostics specific to your case?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1639886</commentid>
    <comment_count>18</comment_count>
    <who name="dataexcess">contact</who>
    <bug_when>2020-04-09 14:45:30 -0700</bug_when>
    <thetext>I just tested with 13.4.

The issue is still there... No Audio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1648315</commentid>
    <comment_count>19</comment_count>
    <who name="Luigi Pulcini">luigi</who>
    <bug_when>2020-05-02 23:50:35 -0700</bug_when>
    <thetext>I asked all my friends on Facebook to test the following player on their iOS 13.4.1 device. None of them managed to make it work. The playback is stuck.

https://www.staging2.waveplayer.info/

The player uses the `createMediaElementSource` WebAudio function to analyze the audio file and animate the waveform using the Frequency Data coming from the source.
So, my only alternative is falling back to a regular Audio Element (with no waveform animations) for all the iOS 13 visitors.

This has been working just fine on any other known versions since iOS 9.

Please update this bug as NOT FIXED and provide us with an estimated date for the final fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1648584</commentid>
    <comment_count>20</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-05-04 09:58:25 -0700</bug_when>
    <thetext>Sorry for the delay. Could you please file a new bug report? This issue was fixed with a patch, and although the fix appears to have been insufficient, continuing the discussion here increases the risk of confusion and mistakes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1648700</commentid>
    <comment_count>21</comment_count>
    <who name="Luigi Pulcini">luigi</who>
    <bug_when>2020-05-04 13:07:41 -0700</bug_when>
    <thetext>I will do.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1649550</commentid>
    <comment_count>22</comment_count>
    <who name="">bruce</who>
    <bug_when>2020-05-06 05:16:01 -0700</bug_when>
    <thetext>Could you please link the new bug report here as well?  I have been patiently waiting for a resolution for months now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1649637</commentid>
    <comment_count>23</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-05-06 08:55:51 -0700</bug_when>
    <thetext>The new report is bug 211394.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>387721</attachid>
            <date>2020-01-14 16:18:13 -0800</date>
            <delta_ts>2020-01-14 17:47:45 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-203435-20200114161813.patch</filename>
            <type>text/plain</type>
            <size>1498</size>
            <attacher name="Per Arne Vollan">pvollan</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9XZWJL
aXQvQ2hhbmdlTG9nCShyZXZpc2lvbiAyNTQ1NDIpCisrKyBTb3VyY2UvV2ViS2l0L0NoYW5nZUxv
Zwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE0IEBACisyMDIwLTAxLTE0ICBQZXIgQXJuZSBW
b2xsYW4gIDxwdm9sbGFuQGFwcGxlLmNvbT4KKworICAgICAgICBSRUdSRVNTSU9OKGlPUyAxMyk6
IGNyZWF0ZU1lZGlhRWxlbWVudFNvdXJjZSBub3Qgd29ya2luZworICAgICAgICBodHRwczovL2J1
Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MjAzNDM1CisKKyAgICAgICAgUmV2aWV3ZWQg
YnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgVGhlIFdlYkNvbnRlbnQgcHJvY2VzcyBpcyBt
aXNzaW5nIGFuIGVudGl0bGVtZW50IGFjY29yZGluZyB0byBsb2dzLgorCisgICAgICAgICogU2Ny
aXB0cy9wcm9jZXNzLWVudGl0bGVtZW50cy5zaDoKKwogMjAyMC0wMS0xNCAgQ29tbWl0IFF1ZXVl
ICA8Y29tbWl0LXF1ZXVlQHdlYmtpdC5vcmc+CiAKICAgICAgICAgVW5yZXZpZXdlZCwgcm9sbGlu
ZyBvdXQgcjI1NDUzMyBhbmQgcjI1NDUzNS4KSW5kZXg6IF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