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

[expo-av] Fix Audio.stopAndUnloadAsync not handling no-data on Android #9877

Merged
merged 6 commits into from Oct 9, 2020

Conversation

IjzerenHein
Copy link
Contributor

@IjzerenHein IjzerenHein commented Aug 21, 2020

Why

Fixes #1709, see #1709 (comment)

How

  • Handle case when stopping recording while no audio data has been received
  • Updated stopAndUnloadAsync to always clean-up/unload even if stop fails
  • Added note to documentation
  • Updated https://github.com/expo/audio-recording-example to demonstrate E_AUDIO_NODATA handling

Test Plan

  • Verified locally using audio-recording-example
  • All test-suite tests succeed on Android

Screenshot_20200825-094854_Expo

@github-actions
Copy link
Contributor

Native Component List for this branch is ready

@IjzerenHein IjzerenHein marked this pull request as ready for review August 25, 2020 07:40
@IjzerenHein IjzerenHein force-pushed the @hein/expo-av/android-recording-stop branch from 3a25d35 to 76fae18 Compare October 8, 2020 12:44
@IjzerenHein
Copy link
Contributor Author

Friendly ping to @bbarthec 😃

Copy link
Contributor

@bbarthec bbarthec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor suggestion 👍
I'm sorry for not responding to this PR for this long 🙇

packages/expo-av/src/Audio/Recording.ts Outdated Show resolved Hide resolved
IjzerenHein and others added 2 commits October 9, 2020 13:31
Co-authored-by: Bartłomiej Bukowski <bartlomiej.bukowski@swmansion.com>
@IjzerenHein
Copy link
Contributor Author

Great suggestion! I've updated the PR accordingly. Thanks for the review =D

@IjzerenHein IjzerenHein merged commit 704103f into master Oct 9, 2020
@IjzerenHein IjzerenHein deleted the @hein/expo-av/android-recording-stop branch October 9, 2020 13:06
Jamedjo pushed a commit to Jamedjo/expo that referenced this pull request Feb 4, 2021
expo#9877)

* [expo-av] Fix Audio.stopAndUnloadAsync not handling no-data on Android

* [expo-av] Update changelog

* [expo-av] Update build files

* Update build files

* Update packages/expo-av/src/Audio/Recording.ts

Co-authored-by: Bartłomiej Bukowski <bartlomiej.bukowski@swmansion.com>

* update build files

Co-authored-by: Bartłomiej Bukowski <bartlomiej.bukowski@swmansion.com>
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

Successfully merging this pull request may close these issues.

Unable to stopAndUnloadAsync a recording that just got started
2 participants