From 59712d0da9899cf08f651199310860b6931dd20c Mon Sep 17 00:00:00 2001 From: Martin <13046765170@163.com> Date: Mon, 29 Jul 2024 14:04:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96PK=E8=BF=87=E7=A8=8B=E4=B8=AD?= =?UTF-8?q?=E5=85=B3=E6=92=AD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/live/activity/LiveSwAnchorActivity.java | 1 + .../java/com/yunbao/live/views/LivePushSwViewHolder.java | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/live/src/main/java/com/yunbao/live/activity/LiveSwAnchorActivity.java b/live/src/main/java/com/yunbao/live/activity/LiveSwAnchorActivity.java index 255b0acc4..850153473 100644 --- a/live/src/main/java/com/yunbao/live/activity/LiveSwAnchorActivity.java +++ b/live/src/main/java/com/yunbao/live/activity/LiveSwAnchorActivity.java @@ -1000,6 +1000,7 @@ public class LiveSwAnchorActivity extends LiveActivity implements LiveFunctionCl } if (mLivePushViewHolder != null) { + mLivePushViewHolder.closeLive(); mLivePushViewHolder.release(); } if (mLiveLinkMicPresenter != null) { diff --git a/live/src/main/java/com/yunbao/live/views/LivePushSwViewHolder.java b/live/src/main/java/com/yunbao/live/views/LivePushSwViewHolder.java index 2c124fad2..d281ec6a8 100644 --- a/live/src/main/java/com/yunbao/live/views/LivePushSwViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LivePushSwViewHolder.java @@ -666,6 +666,13 @@ public class LivePushSwViewHolder extends AbsRyLivePushViewHolder implements ITX } } + public void closeLive(){ + if (swManager != null) { + swManager.exitChannelAll(); + } + } + + public interface onDrPkJoinSuccessListener{ void joinSuccess1(); void joinSuccess2();