<div dir="ltr"><div>Thanks Chris. Is there any other way I can turn that flag? or Do you any idea whether it will be supported in the near furture?<br><br></div>Sasi<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 19, 2015 at 11:12 AM, Chris Dumez <span dir="ltr"><<a href="mailto:cdumez@apple.com" target="_blank">cdumez@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Jer or Eric would know more about this but AudioContext.createMediaStreamSource() is behind a MEDIA_STREAM compile-time flag. It appears the mac port does not turn this flag on so Safari does not currently support the Media Stream API.<div><br></div><div>Kr,<br><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div>--</div><div><span style="font-size:13px"> </span>Chris Dumez - Apple Inc. - Cupertino, CA</div><div><br></div></div></div><br><br>
</div>
<br><div><blockquote type="cite"><div><div class="h5"><div>On Mar 19, 2015, at 9:35 AM, Sasi San <<a href="mailto:sasikumar.gandhi@gmail.com" target="_blank">sasikumar.gandhi@gmail.com</a>> wrote:</div><br></div></div><div><div><div class="h5"><div dir="ltr"><div><div><div>Hi-<br><br>I am trying to get the live audio input from microphone using AudioContext. Safari browser complains that the "createMediaStreamSource" is undefined. here is my sample of JavaScript code. It's not able to create Audio source node. So I am not able to get the audio sample from microphone in the OnAudioProcess event handler.<br><br> var micGain = audioContext.createGain();<br> if(!audioContext.createScriptProcessor){<br> micAudioProcessor = audioContext.createJavaScriptNode(bufferSize, 1, 1);<br> console.log('createJavaScriptNode Done');<br> } else {<br> micAudioProcessor = audioContext.createScriptProcessor(bufferSize, 1, 1);<br> console.log('createScriptProcessor Done');<br> }<br> <br> // Create an AudioNode from the stream.<br> if(typeof(audioContext.createMediaStreamSource) === 'function') {<br> micInput = audioContext.createMediaStreamSource(inAudioStream);<br> micInput.connect(micGain);<br> }<br> else {<br> console.log('method createMediaStreamSource unavailable');<br> }<br><br></div>Please let me know why Safari is complaining on this API "createMediaStreamSource ". Is there any other way I can get the live audio sample from microphone on Safari browser???<br><br></div>Thanks,<br></div>Sasi<br><div><div><div><div><div> <div><br></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>webkit-dev mailing list<br><a href="mailto:webkit-dev@lists.webkit.org" target="_blank">webkit-dev@lists.webkit.org</a><br><a href="https://lists.webkit.org/mailman/listinfo/webkit-dev" target="_blank">https://lists.webkit.org/mailman/listinfo/webkit-dev</a><br></div></blockquote></div><br></div></div></blockquote></div><br></div>