Activate audio for videos using expo-av while iOS Silent Switch is On
See original GitHub issueIs it possible to ignore iPhone devices Silent Switch and still display audio on videos, when using expo-av library? I saw some comments on how to do it in pure React Native using a flag like ignoreSilentSwitch but this didn’t work for expo-av Video component.
Any ideas?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:22 (2 by maintainers)
Top Results From Across the Web
How to enable expo video sound to play when silent switch is ...
You just have to run a silent sound and make it playAsync. It can work useEffect(() => { const setAudioMode = async ()...
Read more >Audio - Expo Documentation
expo-av allows you to implement audio playback and recording in your app. ... On iOS, each background feature requires a special key in...
Read more >Configuring the Audio Playback of iOS and tvOS Apps
When your app plays audio, it silences any other background audio. ... In iOS, setting the Ring/Silent switch to silent mode silences your...
Read more >How to Record Audio using React Native Expo
Music recording JavaScript code for Android and iOS devices using React Native Expo. Hello, React Native developers! When you are working on some...
Read more >Audio playback in background | Voters - Expo - Canny
iOS : Enable audio playback in background via your ... I don't want to have to use RN Track Player when I'm already...
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

Something like
useEffect(() => { Audio.setAudioModeAsync({ playsInSilentModeIOS: true }); });I just solved by adding
playsInSilentModeIOS: trueon myApp.tsx. This was applied for the entire application: