-
Notifications
You must be signed in to change notification settings - Fork 6.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
iOS video intermittently plays muted #11246
Comments
I'm just guessing but maybe some of these messages from the console log might be related?
|
Also see this:
|
Do you by any change have silent mode turned on on those devices? If so, there's an issue about it in TheWidlarzGroup/react-native-video#204. They ended up adding a prop to ignore the silent setting but not sure if a similar one exists in the expo video library. Edit: You can enable it in Expo by setting playsInSilentModeIOS (it's a global setting so you may want to call it as an effect in your App component, or change it any time later): import { Audio } from 'expo-av'
useEffect(() => {
Audio.setAudioModeAsync({ playsInSilentModeIOS: true })
}, []) |
@petrbela Wow, you were totally right, thanks! I feel embarrassed that I didn't know about the physical silent button on the iPhone SE (I rarely use iPhones). I was just pressing the volume up button on the phone which show a visual cue on the left of the phone that suggests the volume is going up, and Safari was playing the mp4 with sound. I would have guessed that the iPhone would give some subtle cue that it's in silent mode when one is pushing the volume up button! The |
Confirmed with another user that the issue is resolved with |
Could someone give me a little pointer on this example snack? https://snack.expo.io/@fluid/expo-av-video-silentmode I can't for the life of me get |
Someone managed to solve? |
🐛 Bug Report
Summary of Issue
We found on at least three different iPhones (varying models) that our app videos intermittently don't play audio through phone speakers even when the phone's volume is 100%. I have an older iPhone SE and I can actually reproduce the issue 100% of the time with the Expo Video example. If I play the same mp4 from Safari on the phone, it works fine. Interestingly, if I plug headphones in, the audio works fine which seems to be similar to issue #9915. More interestingly, if I try to perform a screen recording of the issue, it goes away. This is a critical issue for us because we're a video-based app so we are willing to help and run any diagnostics you would like!
Environment - output of
expo diagnostics
& the platform(s) you're targetingBug on iPhone SE with iOS 14.2 (for example). Works fine on Android.
Reproducible Demo
Steps to Reproduce
Very interestingly, I tried to record a video of my iPhone screen and when I do this, the issue goes away. As soon as I turn off screen recording and try again, the issue comes back.
Expected Behavior vs Actual Behavior
Expect that the mp4 plays audio out of the phone speaker but observe that it doesn't.
Log
I connected XCode to the device, launched the Console, reproduced the problem, and exported the log: https://raw.githubusercontent.com/kevgrig/expovideomuted/master/diagnostics/console.txt
Based on my viewing of the Console, the video loads and starts playing at approximately 18:51:15. I believe the process ID of the Expo app is 445.
The text was updated successfully, but these errors were encountered: