MusicAsLanguage / mobileapp

Mobile app code for the project.
MIT License
1 stars 1 forks source link

Fix: video has no sound on iOS silent mode (walkaround) #129

Closed ShuoZhang-dev closed 2 years ago

ShuoZhang-dev commented 2 years ago

Closing #87 This is actually a SDK bug: if the video is not set to autoplay, then even by setting Audio.setAudioModeAsync({playsInSilentModeIOS:true}) we cannot change the audio track of the video. However, if the video is set to autoplay, the above setting will be effective. I walkaround this bug by autoplay a 2-second silent mp3 in the background of the HomeScreen. In this way, the Audio.setAudioModeAsync({playsInSilentModeIOS:true}) works and when user click the welcome video, it plays sound.

Also update the app version to 1.0.4