Skip to content

Commit 76c8cab

Browse files
Blutooth-Headphone-Issue-Fix (#659)
Co-authored-by: Jonathan Chang <[email protected]>
1 parent 600ce9d commit 76c8cab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

android/src/main/java/com/twiliorn/library/CustomTwilioVideoView.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,8 +748,10 @@ public void toggleBluetoothHeadset(boolean enabled) {
748748
AudioManager audioManager = (AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE);
749749
if (enabled) {
750750
audioManager.startBluetoothSco();
751+
audioManager.setSpeakerphoneOn(false);
751752
} else {
752753
audioManager.stopBluetoothSco();
754+
audioManager.setSpeakerphoneOn(true);
753755
}
754756
}
755757

0 commit comments

Comments
 (0)