From ec33080ccafdec563688ed794eff0a3b35a3feec Mon Sep 17 00:00:00 2001
From: lss <lsc@hdlchina.com.cn>
Date: 星期二, 28 六月 2022 09:45:00 +0800
Subject: [PATCH] 2022-6-28
---
HDLLinphoneSDKDemoNew/HDLLinphoneSDK/src/main/java/com/hdl/hdllinphonesdk/HDLLinphoneKit.java | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/HDLLinphoneSDKDemoNew/HDLLinphoneSDK/src/main/java/com/hdl/hdllinphonesdk/HDLLinphoneKit.java b/HDLLinphoneSDKDemoNew/HDLLinphoneSDK/src/main/java/com/hdl/hdllinphonesdk/HDLLinphoneKit.java
index 29227e3..c431fa1 100644
--- a/HDLLinphoneSDKDemoNew/HDLLinphoneSDK/src/main/java/com/hdl/hdllinphonesdk/HDLLinphoneKit.java
+++ b/HDLLinphoneSDKDemoNew/HDLLinphoneSDK/src/main/java/com/hdl/hdllinphonesdk/HDLLinphoneKit.java
@@ -162,7 +162,6 @@
@Override
public void outgoingInit() {
super.outgoingInit();
-
}
@Override
@@ -175,8 +174,6 @@
@Override
public void callEnd() {
super.callEnd();
-// context.sendBroadcast(new Intent(HDLLinphoneIntercomActivity.RECEIVE_FINISH_VIDEO_ACTIVITY));
-
}
});
}
@@ -449,6 +446,12 @@
if (addressToCall != null) {
call = core.inviteAddressWithParams(addressToCall, params);
+ // 璁剧疆澶栨斁
+ for (AudioDevice audioDevice : HDLLinphoneService.getCore().getAudioDevices()) {
+ if (audioDevice.getType() == AudioDevice.Type.Speaker) {
+ call.setOutputAudioDevice(audioDevice);
+ }
+ }
}
}
return call;
@@ -558,6 +561,8 @@
return;
}
}
+ currentCall.setSpeakerVolumeGain(1.0f);
+ currentCall.setSpeakerMuted(speakerOn);
} catch (Exception e) {
e.printStackTrace();
}
--
Gitblit v1.8.0