修复开播准备页面无法关闭当前页面

This commit is contained in:
Martin 2024-10-18 16:38:42 +08:00
parent b415bd47ea
commit 2fb0afef7d

View File

@ -926,31 +926,6 @@ public class LiveSwAnchorActivity extends LiveActivity implements LiveFunctionCl
}
public void endLives() {
RCRTCEngine.getInstance().getDefaultVideoStream().stopCamera(new IRCRTCResultCallback() {
@Override
public void onSuccess() {
}
@Override
public void onFailed(RTCErrorCode errorCode) {
}
});
RCRTCEngine.getInstance().leaveRoom(new IRCRTCResultCallback() {
@Override
public void onSuccess() {
Log.i("ry", "退出成功");
}
@Override
public void onFailed(RTCErrorCode errorCode) {
Log.i("ry", "退出失败" + errorCode);
}
});
if (mLivePushViewHolder != null) {
mLivePushViewHolder.release();
}