Cordova record audio while playing audio - iOS -
i'm working on cordova app user can record his/her voice background audio. working in android, in ios don't. don't know if has resources or something.
i've tried htmlaudioelement
, cordova-plugin-nativeaudio
, plays audio while i'm not recording. turn recorder on, won't play audio.
i'm using cordoba-plugin-media
recording.
here example:
var audio = new audio("audio/click.wav"); button.addeventlistener("touchstart", function(){ var record = new media(src, onsuccess, onerror); record.startrecord(); audio.play(); }, false);
i know playing audio onclick don't work, thats why i'm using touchstart
Comments
Post a Comment