So I am trying to have my video play the sound even when the Iphone has its silent switch activated. The docs say to look at the audio docs which I have but am still getting nothing to work. Am I suppose to somehow connect my Video to the expo Audio api to be able to use those controls?
Currently I have this and it is not working:
useEffect(() => {
async function test() {
await Audio.setAudioModeAsync({
playsInSilentModeIOS: true,
});
const playbackObject = new Audio.Sound();
}
test();
});
<Video
ref={video}
style={styles.videoView}
source={{
// uri: 'http://d23dyxeqlo5psv.cloudfront.net/big_buck_bunny.mp4',
uri: 'http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/sl.m3u8',
}}
useNativeControls
resizeMode="contain"
isLooping
onPlaybackStatusUpdate={status => setStatus(() => status)}
/>