-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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] Recording status not reset when paused before stopping #21747
Comments
This is also an issue for us and I'd love to help in any way possible 🙂 |
@maticzav I found a way to "hack" into working by sneakily triggering a Obviously that's not the desired behavior but that's at least a work-around |
Can you elaborate or show the example in the expo snack you provided where you are doing this? |
Sure. @vijaystroup const stopRecording = async () => {
await recording.startAsync(); // Recording must be in "playing" state to stop
console.log('Stopping recording..');
setRecording(undefined);
await recording.stopAndUnloadAsync();
await Audio.setAudioModeAsync({
allowsRecordingIOS: false,
});
const uri = await recording.getURI();
setStatus(undefined);
console.log('Audio processed into a file');
return uri;
}; |
Probably it's been fixed in #23816 |
Expo SDK 49 allow to install only expo-av v13.4.1. |
It was first released in 13.6.0. You can try to use it, there is a chance it will work fine with SDK 49 (not in Expo Go though). |
I still have this issue with SDK 49 |
Minimal reproducible example
https://snack.expo.dev/@frenchmajesty1/cannot-pause-before-ending-recording-on-ios
Summary
Must reproduce on iOS device. This behavior works well on the Web.
[ When it works ]
[ When it doesn't work ]
It seems like when a user pauses a recording and then stops it, the
status
value doesn't get resetEnvironment
expo-env-info 1.0.5 environment info:
System:
OS: macOS 13.3
Shell: 5.9 - /bin/zsh
Binaries:
Node: 16.19.1 - ~/.nvm/versions/node/v16.19.1/bin/node
npm: 8.19.3 - ~/.nvm/versions/node/v16.19.1/bin/npm
Watchman: 2022.08.29.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.9.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
IDEs:
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
npmPackages:
expo: ~48.0.5 => 48.0.5
react: 18.2.0 => 18.2.0
react-native: 0.71.3 => 0.71.3
npmGlobalPackages:
expo-cli: 6.3.2
Expo Workflow: managed
The text was updated successfully, but these errors were encountered: