iosreact-nativevideoexporeact-native-video

How to fix 'Video play but don't have sound on iOS with expo'


I use video component from expo. I can play video, but it doesn't sound in iOS. In Android it's okay. How can I fix it.

<Video style={{ width: 340, 
                                height: 220,
                                borderRadius: 10, 
                                overflow: 'hidden' }}
                                posterSource={require('../../assets/loading2.gif')}
                                usePoster={true}
                                rate={1.0}
                                isMuted={false}
                                useNativeControls = {true}
                                volume={1.0}
                                playsInSilentLockedModeIOS ={ true }
                                resizeMode='cover' 
                                shouldPlay={true} 
                                source={{uri : url}} />

Solution

  • Determine whether the media should continue playing while the app is in the background. This allows customers to continue listening to the audio.

    To use this feature on iOS, you must: