Skip to content

Commit

Permalink
拨打视频通话,接通之前,悬浮窗也支持显示自己的视频流 fix #887
Browse files Browse the repository at this point in the history
  • Loading branch information
imndx committed Nov 7, 2024
1 parent 10cf72b commit d78f9c1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand All @@ -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 {
Expand Down

0 comments on commit d78f9c1

Please sign in to comment.