Browse Source

android: fallbacck to speaker in ConnectionService handler

It has been our default for a while.
master
Saúl Ibarra Corretgé 5 years ago
parent
commit
8fd3bb2302

+ 2
- 2
android/sdk/src/main/java/org/jitsi/meet/sdk/AudioDeviceHandlerConnectionService.java View File

53
      */
53
      */
54
     private static int audioDeviceToRouteInt(String audioDevice) {
54
     private static int audioDeviceToRouteInt(String audioDevice) {
55
         if (audioDevice == null) {
55
         if (audioDevice == null) {
56
-            return CallAudioState.ROUTE_EARPIECE;
56
+            return CallAudioState.ROUTE_SPEAKER;
57
         }
57
         }
58
         switch (audioDevice) {
58
         switch (audioDevice) {
59
             case AudioModeModule.DEVICE_BLUETOOTH:
59
             case AudioModeModule.DEVICE_BLUETOOTH:
66
                 return CallAudioState.ROUTE_SPEAKER;
66
                 return CallAudioState.ROUTE_SPEAKER;
67
             default:
67
             default:
68
                 JitsiMeetLogger.e(TAG + " Unsupported device name: " + audioDevice);
68
                 JitsiMeetLogger.e(TAG + " Unsupported device name: " + audioDevice);
69
-                return CallAudioState.ROUTE_EARPIECE;
69
+                return CallAudioState.ROUTE_SPEAKER;
70
         }
70
         }
71
     }
71
     }
72
 
72
 

Loading…
Cancel
Save