-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Feature request: pause during recording #67
Comments
Having a quick look at the platforms I can't see an obvious option for this on Android |
Can you not use the current position and seek to implement this? |
I don't think |
Sorry for some reason I had playback in mind. |
So my app is primarily targeting Android, and I went ahead and implemented this feature myself in my own private fork of this repository. I'll share my solution for Android here. Since I am not currently targeting other operating systems, I haven't made any effort to get this to work on iOS or Windows. Anyway, here is my Android solution.
The purpose of this is simply to make sure that we set the
So, technically this means that loop is still running even when paused, but the key point is that it's not saving any audio data to the temporary file while it is paused. Then, when the user "un-pauses", that data will start writing to the temporary file again. This should take care of Android. |
Thanks for sharing this. Sadly I don't think we have this luxury on iOS or Windows. |
It would be nice to have a "pause" feature on the IAudioRecorder interface so that I can pause and resume recordings.
The text was updated successfully, but these errors were encountered: