javascript - Ionic 2 Web Audio Api -


i'm building ionic 2 application uses users microphone. on web use following access microphone.

navigator.getusermedia = (navigator['getusermedia'] ||     navigator['webkitgetusermedia'] || navigator['mozgetusermedia'] ||     navigator['msgetusermedia']);  (<any>navigator.mediadevices.getusermedia({audio:true}).then((stream)=>{........... 

when ionic serve application, audio input recorded , works. however, when run app on real android device, nothing happens when make sound. how can access users microphone in ionic 2 application?

try usin cordova plugin access device microphone,check here


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -