diff --git a/uikit/src/main/java/cn/wildfire/chat/kit/voip/VoipCallService.java b/uikit/src/main/java/cn/wildfire/chat/kit/voip/VoipCallService.java index e53ef9f5..ae3012b4 100644 --- a/uikit/src/main/java/cn/wildfire/chat/kit/voip/VoipCallService.java +++ b/uikit/src/main/java/cn/wildfire/chat/kit/voip/VoipCallService.java @@ -279,7 +279,7 @@ private void showFloatingWindow(AVEngineKit.CallSession session) { view = LayoutInflater.from(this).inflate(R.layout.av_voip_float_view, null); view.setOnTouchListener(onTouchListener); wm.addView(view, params); - if (session.getState() != AVEngineKit.CallState.Connected) { + if (session.getState() != AVEngineKit.CallState.Connected && !(!session.isAudioOnly() && session.getState() == AVEngineKit.CallState.Outgoing)) { showUnConnectedCallInfo(session); } else { if (session.isScreenSharing()) { @@ -288,6 +288,9 @@ private void showFloatingWindow(AVEngineKit.CallSession session) { showAudioView(session); } else { String nextFocusUserId = nextFocusUserId(session); + if (session.state == AVEngineKit.CallState.Outgoing) { + nextFocusUserId = ChatManager.Instance().getUserId(); + } if (nextFocusUserId != null) { showVideoView(session, nextFocusUserId); } else {