-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Best way to handle audio interruptions? #624
Comments
I am facing the same problem. |
For now ive moved to expo-av which has gotten better with Expo 51 and handled interruptions a little more elegantly. |
According to this commit, this issue should not have been there. I'm not sure what we are doing wrong. |
I messed with the code a bit. It calls to pause and resume based on the interrupt event beginning and end. The problem is, in some cases, you would just want to stop the player and save the file recorded so far. It seems that if you call stopRecorder while it is in the paused stage, you lose the file. |
I was Having the Exact same issue,
so I had to put on higher stakes:
|
I did the same, i use |
Downgrading from 3.6.10 to 3.6.7 fixed this for me. |
Version of react-native-audio-recorder-player
3.6.7 and 3.6.10
I suddenly have started receiving pings from users indicating interruptions are deleting their recordings. This seems to be happening all at once so either something changed in my app (most likely) or perhaps in iOS?
I was wondering if anyone could share how they handle interruptions on the react native side. As it stands, interruptions seem to restart the recording and discard the audio up to that point. Could anyone share an example of how they handle this?
Version of React Native
Platforms you faced the error (IOS or Android or both?)
Expected behavior
Actual behavior
Steps to reproduce the behabior
The text was updated successfully, but these errors were encountered: