Convert MediaElementAudioSourceNode to AudioBufferSourceNode
<p>If you want to decode Audio Data, createMediaElementSource() is not working on mobile devices, However createBufferSource() method is working properly:</p>

<p>This code is working properly in web browsers, but not in mobile devices:</p>

<pre><code>var audioSource = new Audio();
audioSource.src= "Test.mp3";
var audioCtx = new AudioContext();
var sourceT1 = audioCtx.createMediaElementSource(audioSource); //This is the source audio
//My Decoding...
</code></pre>

<p>And this code is working for both Web and Mobile browsers:</p>

<pre><code>var audioSource = new Audio();
var audioCtx = new AudioContext();
var sourceT2 = audioCtx.createBufferSource(); //This is the source audio
request = new XMLHttpRequest();
request.open('GET', 'Test.mp3', true);
request.responseType = 'arraybuffer';
request.onload = function() {
 var audioData = request.response;
audioCtx.decodeAudioData(audioData, function(myBuffer) {
 sourceT2.buffer = myBuffer;
//My Decoding...
 },
function(e){"Error with decoding audio data" + e.err});
}
</code></pre>

<p>In my case I have an Audio source that comes from a video player to be decoded, which is a MediaElementAudioSourceNode, and I need to convert it to a AudioBufferSourceNode in order to get my code working on mobile devices, In other words, is it possible to convert <strong>sourceT1</strong> to <strong>sourceT2</strong>?</p>

<p>Any Idea how to do it?</p>

<p><strong>EDIT:</strong>
Based on this <a href="https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-html5/HkX1sP8ONKs" rel="nofollow">answer</a>, unfortunatly I think it is impossible to do it</p>