Comments (8)
Hi guys,
here's the solution for this (iOS)
in the AudioRecorderAPI.h file add:
#import <AudioToolbox/AudioService.h>
and then in the AudioRecorderAPI.m add the following under the [audioSession setActive:YES error:&err];
UInt32 audioRouteOverride = kAudioSessionOverrideAudioRoute_Speaker; AudioSessionSetProperty (kAudioSessionProperty_OverrideAudioRoute, sizeof (audioRouteOverride),&audioRouteOverride);
And that's it. Build the project again and it should be working.
from cordova-plugin-audio-recorder-api.
You're welcome. I'm happy to hear people use the plugin that I build.
So far, It can't control the volume. :(
But I think it can implement both recording and playback.
I made this plugin for a demo of a project, so I will improve the plugin when the project starts.
from cordova-plugin-audio-recorder-api.
thanks, @kerlama
from cordova-plugin-audio-recorder-api.
Thanks. Pull request is welcome.
from cordova-plugin-audio-recorder-api.
@kerlama that solved my issue, thanks a lot!
@emj365 please integrate it in the actual plugin.
from cordova-plugin-audio-recorder-api.
@kerlama Thanks a lot! solved my problem
should be
#import <AudioToolbox/AudioServices.h>
instead of
#import <AudioToolbox/AudioService.h>
though
from cordova-plugin-audio-recorder-api.
Hi emj365, this is Akhil started my first ionic1 project using angular1 used cordova media capture plugin to record audio file but its not working properly in all mobile devices. Saw your plugin but facing problem in integrating into my project. Could you please provide me step-by-step integration steps and also any example mobile app with this plugin integrated
from cordova-plugin-audio-recorder-api.
@eeturiakhil I'm glad you like this plugin. This is very normal Cordova, you could read https://github.com/emj365/cordova-plugin-audio-recorder-api/blob/master/README.md#cordova-audio-recorder-api-plugin first. If it can't solve your problem I suggest you read more articles or check questions on StackOverflow about install Cordova plugins.
from cordova-plugin-audio-recorder-api.
Related Issues (20)
- audid file location HOT 1
- Causes touchend event to fire in Android 4.4.2 Samsung Galaxy Note II HOT 1
- en..why set a default duration? HOT 2
- Pause o stop playback HOT 5
- Getting file contents HOT 1
- invalid action ? HOT 4
- How to get the recording time and file size? HOT 1
- Error when I stop a recording already stopped by timeout HOT 1
- Crash when stop and then start record HOT 1
- prepareToRecord failed HOT 2
- Can I return the function to know when it's done recording?
- Audio Playback/Output Bug
- Audio recording failed in marshmallow HOT 10
- Hi, Can you please add support for pause and resume recording. HOT 2
- Get total recorded duration! HOT 1
- Low volume in IOS HOT 1
- This plugin does not work on Android 6.0.Can you fix it ? HOT 3
- App crashes when recordin audios over than 20s (or so..) HOT 1
- Plugin not working. Does any fork work?
- Microphone in use when app is in the background
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-audio-recorder-api.