Merge pull request #3211 from mysport12/master

Feature: audioOutput - Play over phone earpiece
This commit is contained in:
Olivier Bouillet
2023-08-31 08:25:12 +02:00
committed by GitHub
9 changed files with 93 additions and 1 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
}