hyochan / react-native-audio-recorder-player

react-native native module for audio recorder and player.
MIT License
715 stars 213 forks source link

Handling Interrupts During Recording #170

Closed dbirchfield80 closed 4 years ago

dbirchfield80 commented 4 years ago

Version of react-native-audio-recorder-player

2.4.4-rc.1

Platforms you faced the error (IOS or Android or both?)

iOS

Expected behavior

When recording an audio file, an interrupt event occurs. For example, a countdown timer expires in the iOS Timer app, generating an alarm. Or, a phone call comes in and is left unanswered. https://developer.apple.com/library/archive/documentation/Audio/Conceptual/AudioSessionProgrammingGuide/HandlingAudioInterruptions/HandlingAudioInterruptions.html

Is it possible to handle this type of interrupt? Ideally, triggering a Pause recording action when the interrupt occurs, then a Resume recording once the interrupt is completed.

Actual behavior

The interrupt occurs, and recording stops and does not resume.

Steps to reprodue the behabior

Start a recording, trigger an Alarm by setting a short countdown timer in the iOS Timer app.

hyochan commented 4 years ago

Looks like this is another feature request. Currently, we don't take care of that situation and you should have to re-record them.

hyochan commented 4 years ago

Related #15

stale[bot] commented 4 years ago

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions.

stale[bot] commented 4 years ago

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

joshmohrer commented 9 months ago

does anyone know if this ever got fixed in the subsequent 3 years? I recall this working for me properly a few months ago - a phone call or alarm would pause the recording - but now it seems to just scrap it.

pipi32167 commented 7 months ago

Look at this

joshmohrer commented 5 months ago

This is fantastic - thank you @pipi32167 @hyochan Works great!