ZaraclaJ / audio_recorder

Other
180 stars 128 forks source link

Phone call interruption #15

Open apurvh opened 6 years ago

apurvh commented 6 years ago

@ZaraclaJ Hi, thanks for the awesome plugin.

I have this issue: While recording, in the case of an incoming phone call, audio gets corrupted (reduced to one sec) on iOS.

To handle this, I created this plugin https://pub.dartlang.org/packages/phone_state_i which creates a call back for phone call states and I stop recording.

But after this, I realised that iOS still corrupting the recording, After digging more I figured that probably interruptions are not handled by your plugin. (https://stackoverflow.com/questions/31733559/handling-interruptions-with-avaudiorecorder)

I wanted to ask you if you can implement this method(handling interruptions) in the plugin?

ZaraclaJ commented 6 years ago

Be free to make a pull request if you have the time to implement this. Otherwise, i will do it later

junaidShaikh commented 5 years ago

@Apurv2017 Any success here?