房间排名和首页搜索房间
This commit is contained in:
@@ -49,21 +49,31 @@ class RoomVC: BaseViewController, HiddenNavigationBarProtocol {
|
||||
RoomVCViewModel.roomVM.isMute = true
|
||||
NIMSDK.shared().chatroomManager.exitChatroom(self.roomInfo?.roomId ?? "")
|
||||
self.dismiss(animated: true, completion: nil)
|
||||
return
|
||||
}
|
||||
TRTCCloud.sharedInstance().exitRoom()
|
||||
TRTCCloud.sharedInstance().muteAllRemoteAudio(false)
|
||||
TRTCCloud.sharedInstance().muteLocalAudio(false)
|
||||
RoomVCViewModel.roomVM.isMute = true
|
||||
NIMSDK.shared().chatroomManager.exitChatroom(self.roomInfo?.roomId ?? "")
|
||||
self.dismiss(animated: true, completion: nil)
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
|
||||
let vc = RoomVC(roomUid: uid)
|
||||
let nav = BaseNavigationViewController.init(rootViewController: vc)
|
||||
nav.modalPresentationStyle = .fullScreen
|
||||
keyWindow.rootViewController?.present(nav, animated: true, completion: nil)
|
||||
|
||||
}else if type == 1 {
|
||||
|
||||
TRTCCloud.sharedInstance().exitRoom()
|
||||
TRTCCloud.sharedInstance().muteAllRemoteAudio(false)
|
||||
TRTCCloud.sharedInstance().muteLocalAudio(false)
|
||||
RoomVCViewModel.roomVM.isMute = true
|
||||
NIMSDK.shared().chatroomManager.exitChatroom(self.roomInfo?.roomId ?? "")
|
||||
self.dismiss(animated: true, completion: nil)
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
|
||||
let vc = RoomVC(roomUid: uid)
|
||||
let nav = BaseNavigationViewController.init(rootViewController: vc)
|
||||
nav.modalPresentationStyle = .fullScreen
|
||||
keyWindow.rootViewController?.present(nav, animated: true, completion: nil)
|
||||
}
|
||||
|
||||
}else{
|
||||
let web = WebViewController(url: uid,isHalf: true)
|
||||
self.present(web, animated: true, completion: nil)
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
private func addNIMSDKManager(){
|
||||
@@ -102,7 +112,27 @@ class RoomVC: BaseViewController, HiddenNavigationBarProtocol {
|
||||
make.bottom.equalTo(-bottom)
|
||||
make.height.equalTo(UIDevice.scaleWidth(width: 40))
|
||||
}
|
||||
|
||||
micSeatView.showUserInfoBlock = {[weak self] user in
|
||||
guard let weakSelf = self else { return }
|
||||
let userInfoView:HomeVoiceUserInfoView = HomeVoiceUserInfoView.init(frame: .zero)
|
||||
userInfoView.clickBtnBlock = {[weak self] (type,uid) in
|
||||
guard let weakSelf = self else {
|
||||
return
|
||||
}
|
||||
if type == 0{
|
||||
let session = NIMSession(uid, type: .P2P)
|
||||
let chatVC = ChatVC.init(session: session)
|
||||
weakSelf.navigationController?.pushViewController(chatVC, animated: true)
|
||||
}
|
||||
|
||||
}
|
||||
userInfoView.type = 2
|
||||
userInfoView.user = user
|
||||
weakSelf.view.addSubview(userInfoView)
|
||||
userInfoView.snp.makeConstraints { make in
|
||||
make.edges.equalTo(weakSelf.view)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private func requestData(){
|
||||
|
Reference in New Issue
Block a user