emj365 / cordova-plugin-audio-recorder-api

This plugin is a Cordova audio recorder plugin which works as API.
86 stars 63 forks source link

It not works on device? #9

Closed puny-d closed 9 years ago

puny-d commented 9 years ago

Hi: I found this plugin works well on ios simulator, but seem not works on device, and every recording file only 1s?

emj365 commented 9 years ago

I found the recording timeout(as the method parameter) in iOS has many problems. I will try to use the timer to control the recording just like I did in Android.

puny-d commented 9 years ago

Thank you, could I disable the recording timeout without passing any parameter? 谢谢!

emj365 commented 9 years ago

Good idea. Hasn't a parameter to disable that for now. So far, you can try set the timeout to a huge number. The stop method will works fine. But I am not sure it can fix the issue in that way. 不用客气:)

puny-d commented 9 years ago

Have you make any changes to the code?I have found it still fail when I test it on device, and every recording file seems to be 1s, without any sound. But when I test it on ios simulator, it works well.

My device is iphone6 plus, iOS 8.4.

emj365 commented 9 years ago

As you can see, I haven't committed yet. I'm waiting for my Apple Develop account active mail. So I can't test it on the device for now. However pull request is welcome ;)

emj365 commented 9 years ago

https://github.com/emj365/cordova-plugin-audio-recorder-api/blob/master/src/ios/AudioRecorderAPI.m#L57

you can check this.

puny-d commented 9 years ago

Thank you very much. I am sorry that I am not familiar with objective-c, But when I test on the device, the log on the terminal seems to works fine. So I cloud only wait for your testing, Thanks!

emj365 commented 9 years ago

@puny-d I tried it in my iPad mini. Doesn't has the problem which you describe. Please check your JS code.

And I wish I can push an Ionic demo app for this plugin soon.

So far, you can check https://github.com/emj365/test_ionic. It's ugly but works.

emj365 commented 9 years ago

@puny-d, please try my testing code. Thanks for the feedback. My iPad is iOS 8.4, that works.

puny-d commented 9 years ago

Thank you very much, I have reinstall your plugin, It works now