Unable to stopAndUnloadAsync a recording that just got started
See original GitHub issueReproducible Demo
https://snack.expo.io/rJ6j67G6f
After calling await recording.startAsync()
, it needs at least ~300ms before recording.stopAndUnloadAsync()
can be called, otherwise it’ll fail and subsequent startAsync
calls will result in
error: Only one Recording object can be prepared at a given time.
Tested on Android.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:16
- Comments:15 (2 by maintainers)
Top Results From Across the Web
Expo-av audio recording - Stack Overflow
Save this question. Show activity on this post. I'm trying to record audio with expo-audio but it's showing an error when I start...
Read more >Audio - Expo Documentation
Creates and loads a new Sound object to play back the Recording . Note that this will only succeed once the Recording is...
Read more >Expo-av audio recording : r/reactnative - Reddit
I 'm trying to record audio with expo-audio but it's showing an error when I start recording Error: Only one Recording object can...
Read more >How to Record Audio using React Native Expo
Allow the permission asked. Start and stop the recording accordingly. Now see your command prompt or terminal, you will see the location of...
Read more >How To Create An Audio/Video Recording App With React ...
During the video recording, we can't receive the recording status as we have done for audio. That's why I have created a function...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
For anyone who needs this fix on managed until the SDK 40 release comes out…
I had this issue after getting overly ES6.
vs
This allows
stopAndUnloadAsync
to correctly evaluatethis._canRecord
.