1
0
mirror of https://github.com/tooot-app/app synced 2024-12-22 07:34:06 +01:00

Merge pull request #507 from de1acr0ix/workaround-ios-background-stop-other-audio

Patch expo-av to fix audio issue when switched to background on iOS
This commit is contained in:
xmflsct 2022-12-04 13:58:34 +01:00 committed by GitHub
commit 8d0a58b975
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,14 @@
diff --git a/node_modules/expo-av/ios/EXAV/EXAudioSessionManager.m b/node_modules/expo-av/ios/EXAV/EXAudioSessionManager.m
index 81dce13..8664b90 100644
--- a/node_modules/expo-av/ios/EXAV/EXAudioSessionManager.m
+++ b/node_modules/expo-av/ios/EXAV/EXAudioSessionManager.m
@@ -168,9 +168,6 @@ - (void)moduleDidBackground:(id)backgroundingModule
// compact doesn't work, that's why we need the `|| !pointer` above
// http://www.openradar.me/15396578
[_foregroundedModules compact];
-
- // Any possible failures are silent
- [self _updateSessionConfiguration];
}
- (void)moduleDidForeground:(id)module