javascript - HTML5 Audio Recording Not Working External Microphone -


i playing around getusermedia gain access users microphone in chrome(version 28.0.1500.72 m). able record , play users input when use internal microphone internal speakers.

as plug in usb microphone headset no longer able record users input. have switched device in chrome setting under privacy , content settings. chrome see newly plugged in microphone. have restarted chrome , tried again after plugging in mic well. still no user input.

thanks in advance.

below current code using.

    window.audiocontext = window.audiocontext||window.webkitaudiocontext;     var html5recorder;     var audiocontext = new audiocontext();     navigator.getusermedia = navigator.getusermedia || navigator.webkitgetusermedia || navigator.mozgetusermedia || navigator.msgetusermedia || navigator.ogetusermedia;     if(navigator.getusermedia){         navigator.getusermedia({audio:true},handleaudiostream, audioerror)     }else{         console.log('use flash')     }      function handleaudiostream(stream){         var mediastream = audiocontext.createmediastreamsource(stream);         mediastream.connect( audiocontext.destination );         html5recorder = new html5recorder(mediastream);         html5recorder.stop();         html5recorder.clear();     }      function audioerror(error){         console.log(error);     }      function record(){         html5recorder.record();     }      function stoprecording(){         html5recorder.stop();         html5recorder.exportwav(function(e){             console.log(e);             console.log(window.url.createobjecturl(e));            document.getelementbyid('audio1').src =  window.url.createobjecturl(e);             html5recorder.forcedownload(e);         });     } 

this bug in current chrome build using (28). chrome canary works fine.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -