Skip to content

Commit 77ba20e

Browse files
committed
fix
1 parent 4d5963e commit 77ba20e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

android/src/main/java/io/getstream/webrtc/flutter/audio/AudioFocusManager.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ private int inferPreOStreamType(Integer usageType, Integer contentType) {
164164
return AudioManager.STREAM_ALARM;
165165
}
166166
}
167+
167168
if (contentType != null) {
168169
if (contentType == AudioAttributes.CONTENT_TYPE_MUSIC
169170
|| contentType == AudioAttributes.CONTENT_TYPE_MOVIE) {
@@ -173,7 +174,8 @@ private int inferPreOStreamType(Integer usageType, Integer contentType) {
173174
return AudioManager.STREAM_VOICE_CALL;
174175
}
175176
}
176-
return AudioManager.STREAM_MUSIC;
177+
178+
return AudioManager.STREAM_VOICE_CALL;
177179
}
178180

179181
private void registerTelephonyListener() {

0 commit comments

Comments
 (0)