融云失败回调添加直播结束调用

This commit is contained in:
18401019693 2022-12-01 17:28:49 +08:00
parent 72f7e00dd5
commit fa6eda5936

View File

@ -1527,7 +1527,24 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
@Override
public void onError(IRongCoreEnum.CoreErrorCode coreErrorCode) {
try {
Log.i("tx", "退出成功" + mLiveBean.getUid());
LiveNetManager.get(mContext)
.leaveRoomNew(mLiveBean.getStream(), mLiveBean.getUid(), new com.yunbao.common.http.base.HttpCallback<String>() {
@Override
public void onSuccess(String data) {
}
@Override
public void onError(String error) {
}
});
} catch (Exception e) {
e.printStackTrace();
}
}
});