Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

$cordovaMedia does not work for recording audio

$
0
0

I am trying to record audio using ngCordova plugin. I'm testing it on iOS simulator.

The code looks as below.

var src = "audio.mp3";
var media = $cordovaMedia.newMedia(src);
media.startRecord();

The first two line runs without any problem, when my app is trying to run "media.startRecord();" line, the system gives the error like below.

5     951571   log      exeption nativeEvalAndFetch : TypeError: undefined is not an object (evaluating 'q.reject')
6     951572   log      exeption nativeEvalAndFetch : TypeError: undefined is not an object (evaluating 'q.reject')

Is there anyone knowing what this error means? We googled for a long time, but there was no clear answer for this issue.

Our possible guess is 1) because it runs on simulator, 2) we needed to set any permission setting for microphone (we did not do anything on permission, no related documentation so far).

Looking forward to your help.

Thanks in advance for your help.

  • Jeungmin.

Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>