Skip to content
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

stopRecording() needs a callback for successful operation #1

Open
toramanlis opened this issue Aug 9, 2020 · 0 comments
Open

stopRecording() needs a callback for successful operation #1

toramanlis opened this issue Aug 9, 2020 · 0 comments

Comments

@toramanlis
Copy link

If you want to process the audio file with, for example, getRecordingFile() as soon as the recording stops, you need to wait a bit before attempting so.

Waiting with setTimeout() is not a good practice for this as you have no way of knowing how long youshould wait exactly.

Using setInterval() gets a bit cluttered since you need to clear it after finished or reattempt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant