Skip to content

Commit 0c13f47

Browse files
hiroshihoriedavidliu
authored andcommitted
Change defaults to iOS defaults (#7)
1 parent b08fb42 commit 0c13f47

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdk/objc/components/audio/RTCAudioSessionConfiguration.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ - (instancetype)init {
6969
// By default, using this category implies that our app’s audio is
7070
// nonmixable, hence activating the session will interrupt any other
7171
// audio sessions which are also nonmixable.
72-
_category = AVAudioSessionCategoryPlayAndRecord;
73-
_categoryOptions = AVAudioSessionCategoryOptionAllowBluetooth;
72+
_category = AVAudioSessionCategorySoloAmbient;
73+
_categoryOptions = 0;
7474

7575
// Specify mode for two-way voice communication (e.g. VoIP).
76-
_mode = AVAudioSessionModeVoiceChat;
76+
_mode = AVAudioSessionModeDefault;
7777

7878
// Set the session's sample rate or the hardware sample rate.
7979
// It is essential that we use the same sample rate as stream format

0 commit comments

Comments
 (0)