|
@@ -291,6 +291,8 @@ class NurseHomeActivity : BaseActivity<NurseHomeActivityPresenter, ActivityNurs
|
|
|
//门口机通话音量 没做白昼区分
|
|
|
SettingConfig.setDoorPhoneVolume(this, SettingConfiguration.getInstance().dayDoorVol)
|
|
|
|
|
|
+ VoiceManagerUtil.setCallVoice(activity, SettingConfig.getHostHandsFreePlayVolume(this.activity))
|
|
|
+
|
|
|
updateTime(true)
|
|
|
}
|
|
|
|
|
@@ -668,6 +670,7 @@ class NurseHomeActivity : BaseActivity<NurseHomeActivityPresenter, ActivityNurs
|
|
|
Log.e(TAG,"手柄放下 ")
|
|
|
Constants.hookOn = true
|
|
|
VoiceManagerUtil.switchAudioMode(activity, true)
|
|
|
+ VoiceManagerUtil.setCallVoice(activity, SettingConfig.getHostHandsFreePlayVolume(activity))
|
|
|
if (Constants.CALL_STATE == Constants.CALL_OUTGOING) {
|
|
|
//呼出取消
|
|
|
Constants.CALL_STATE = Constants.CALL_STANDBY
|
|
@@ -694,6 +697,7 @@ class NurseHomeActivity : BaseActivity<NurseHomeActivityPresenter, ActivityNurs
|
|
|
Log.e(TAG,"手柄拿起 ")
|
|
|
Constants.hookOn = false
|
|
|
VoiceManagerUtil.switchAudioMode(activity, false)
|
|
|
+ VoiceManagerUtil.setCallVoice(activity, SettingConfig.getHostGamepadPlayVolume(activity))
|
|
|
if (Constants.CALL_STATE == Constants.CALL_INCOMING) {
|
|
|
//来电接听
|
|
|
//通话之前先判断webrtc socket是否连接上,否则不能建立通话
|