<?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>125031</bug_id>
          
          <creation_ts>2013-11-30 11:44:28 -0800</creation_ts>
          <short_desc>No audioprocess event or byte frequency data when using HTML5 audio via createMediaElementSource()</short_desc>
          <delta_ts>2018-10-02 13:42:25 -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>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.9</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>135042</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Scott Schiller">bugs</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cheron.leo</cc>
    
    <cc>crogers</cc>
    
    <cc>cwilso</cc>
    
    <cc>jer.noble</cc>
    
    <cc>lepinski</cc>
    
    <cc>mail</cc>
    
    <cc>t.decaux</cc>
    
    <cc>ultravistor</cc>
    
    <cc>webkitbugzilla</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>955078</commentid>
    <comment_count>0</comment_count>
    <who name="Scott Schiller">bugs</who>
    <bug_when>2013-11-30 11:44:28 -0800</bug_when>
    <thetext>Purpose: Attempting to use Web Audio API to get data for visualization during playback of an HTML5 &lt;audio&gt; element.

Observed: &apos;audioprocess&apos; event does not fire (demo 1), getByteFrequencyData() returns array of zeroes (demo 2.)

Demo 1: AudioContext() + createMediaElementSource() + createScriptProcessor() → audioprocess event
http://isflashdeadyet.com/tests/web-audio-visualization/

Demo 2: AudioContext() + createMediaElementSource() + createAnalyser() / getByteFrequencyData() method
http://isflashdeadyet.com/tests/web-audio-visualization/index-analyser.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1039507</commentid>
    <comment_count>1</comment_count>
    <who name="Takahiro Ichihashi">ultravistor</who>
    <bug_when>2014-10-04 09:50:44 -0700</bug_when>
    <thetext>It seems that createMediaElementSource() is actually not implemented (correct me if wrong). The method is there; we can call it w/o error, but it doesn&apos;t filter/analyze/produce actual sound if the audio is routed through this node. (Sounds come from media element even the method is not working, which makes it error-prone)

would love to hear the plan. 

* Btw many documentations (including apple dev guide) mention it as usable function, 

Dev guide:
https://developer.apple.com/library/safari/documentation/audiovideo/conceptual/using_html5_audio_video/PlayingandSynthesizingSounds/PlayingandSynthesizingSounds.html

MDN: 
https://developer.mozilla.org/ja/docs/Web/API/AudioContext.createMediaElementSource</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1047388</commentid>
    <comment_count>2</comment_count>
    <who name="Takahiro Ichihashi">ultravistor</who>
    <bug_when>2014-11-09 07:11:51 -0800</bug_when>
    <thetext>Hello, is anyone paying attention to this issue? 

As a user/developer, use case of createMediaElementSource() was clear: visualise audio data (in iOS Safari). Since it&apos;s not working now, the application needs to download all the audio file first and execute decodeAudioData(), or cache spectrum data per audio file. Both appears not to be so smart/straightforward approach.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1056638</commentid>
    <comment_count>3</comment_count>
    <who name="tommy tee">webkitbugzilla</who>
    <bug_when>2014-12-17 17:11:13 -0800</bug_when>
    <thetext>It would be awesome if this worked.
I hope someone up there gets the time to look into it.

Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1056868</commentid>
    <comment_count>4</comment_count>
    <who name="Chris Wilson">cwilso</who>
    <bug_when>2014-12-18 12:35:18 -0800</bug_when>
    <thetext>I believe this is essentially the same as http://crbug.com/419446.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1082352</commentid>
    <comment_count>5</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2015-04-02 15:16:50 -0700</bug_when>
    <thetext>Dup of bug #135042.

*** This bug has been marked as a duplicate of bug 135042 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1082355</commentid>
    <comment_count>6</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2015-04-02 15:18:10 -0700</bug_when>
    <thetext>Please try this against a WebKit nightly build on Mac OS X Yosemite.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1465746</commentid>
    <comment_count>7</comment_count>
    <who name="Thomas Decaux">t.decaux</who>
    <bug_when>2018-10-02 13:42:25 -0700</bug_when>
    <thetext>It seems Safari 12 is still not working with the simple demo:

&quot;analyzer is not working with MediaElementAudioSourceNode, but it&apos;s working fine with AudioBufferSourceNode&quot;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>