修复开播准备页面无法关闭当前页面
This commit is contained in:
parent
b415bd47ea
commit
2fb0afef7d
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user