Allow audio output via earpiece

This commit is contained in:
Craig Martin
2023-04-02 14:02:56 -04:00
parent 05864dc64a
commit daabb91475
8 changed files with 331 additions and 198 deletions

View File

@@ -197,7 +197,7 @@ enum RCTPlayerOperations {
var options:AVAudioSession.CategoryOptions? = nil
if (ignoreSilentSwitch == "ignore") {
category = AVAudioSession.Category.playback
category = AVAudioSession.Category.playAndRecord
} else if (ignoreSilentSwitch == "obey") {
category = AVAudioSession.Category.ambient
}