Video audio only playing through the earpiece on iOS once audio is recorded and played
See original GitHub issue🐛 Bug Report
Summary of Issue
On iOS, once audio is recorded and played back, the video no longer plays through the bottom speaker, only through the ear piece.
Environment - output of expo diagnostics
& the platform(s) you’re targeting
iOS 13.6.1 iPhone SE (2020)
Expo diagnostics:
Expo CLI 3.24.2 environment info:
System:
OS: macOS 10.15.4
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 14.8.0 - ~/.nvm/versions/node/v14.8.0/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.8 - ~/.nvm/versions/node/v14.8.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
IDEs:
Android Studio: 4.0 AI-193.6911.18.40.6514223
Xcode: 11.6/11E708 - /usr/bin/xcodebuild
npmPackages:
expo: ^38.0.9 => 38.0.9
react: 16.11.0 => 16.11.0
react-native: https://github.com/expo/react-native/archive/sdk-38.0.0.tar.gz => 0.62.2
react-navigation: ^3.13.0 => 3.13.0
npmGlobalPackages:
expo-cli: 3.24.2
Reproducible Demo
Offending example:
https://snack.expo.io/OZJ!b7qQe Note that if I delete the recorder component after using it, the issue persists.
Working example (missing the recording, but can help you hear what the video should sound like)
https://snack.expo.io/zkM2VySDl
Steps to Reproduce
Basically if you record audio and play it back in an iOS app. Then play a video.
Expected Behavior vs Actual Behavior
I expect to have audio play through both the bottom speaker and the earpiece. It is only in the ear piece.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:15 (3 by maintainers)
Top Results From Across the Web
video only has sound on 1 side - Apple Support Communities
If the audio track indicates the presence of stereo content and the balance is already centered, then there is no audio recorded on...
Read more >No Sound on One Side of My iPhone Headset
If your iPhone's audio settings are improperly configured, you'll likely hear one-sided playback. Turn off mono audio from the "Accessibility settings" to allow ......
Read more >How to Fix iPhone Stuck in Headphones Mode, Speaker Not ...
... in some sort of “headphones mode” and only plays sound out of a ... Check Out Our Video On Headphone Mode; iPhone...
Read more >Audio - Expo Documentation
Note that audio automatically stops if headphones / bluetooth audio devices are ... On iOS, audio playback and recording in background is only...
Read more >Why can I only hear my microphone/guitar in one side of my ...
This issue is usually caused by recording a mono source (one mic or one guitar) onto a stereo audio track. To avoid this,...
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
I think @MrXyfir has a very good point. This might just be related to the Audio-mode that is set when calling
Audio.setAudioModeAsync({ allowsRecordingIOS: false })
. This sets the audio up for both recording and audio playback at the same time (AVSession -> AVAudioSessionCategoryPlayAndRecord). Details here: https://developer.apple.com/documentation/avfaudio/avaudiosessioncategoryplayandrecord?language=objcIn this mode audio is played at a lower volume and might be routed to the headphones.
Try setting
allowsRecordingIOS
totrue
before recording, and tofalse
after recording has completed.Still an issue.