接入声网
This commit is contained in:
@@ -13,7 +13,7 @@ class RoomVC: BaseViewController, HiddenNavigationBarProtocol {
|
||||
self.roomUid = roomUid
|
||||
}
|
||||
deinit {
|
||||
TRTCCloud.destroySharedIntance()
|
||||
YinRoomAudMioanager.share.destroySharedIntance()
|
||||
}
|
||||
required init?(coder: NSCoder) {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
@@ -43,18 +43,14 @@ class RoomVC: BaseViewController, HiddenNavigationBarProtocol {
|
||||
topView.didClickTypeBlcok = {[weak self] (type,uid) in
|
||||
guard let self = self else { return}
|
||||
if type == 0{
|
||||
TRTCCloud.sharedInstance().exitRoom()
|
||||
TRTCCloud.sharedInstance().muteAllRemoteAudio(false)
|
||||
TRTCCloud.sharedInstance().muteLocalAudio(false)
|
||||
YinRoomAudMioanager.share.exitRoom()
|
||||
RoomVCViewModel.roomVM.isMute = true
|
||||
NIMSDK.shared().chatroomManager.exitChatroom(self.roomInfo?.roomId ?? "")
|
||||
self.dismiss(animated: true, completion: nil)
|
||||
|
||||
}else if type == 1 {
|
||||
|
||||
TRTCCloud.sharedInstance().exitRoom()
|
||||
TRTCCloud.sharedInstance().muteAllRemoteAudio(false)
|
||||
TRTCCloud.sharedInstance().muteLocalAudio(false)
|
||||
YinRoomAudMioanager.share.exitRoom()
|
||||
RoomVCViewModel.roomVM.isMute = true
|
||||
NIMSDK.shared().chatroomManager.exitChatroom(self.roomInfo?.roomId ?? "")
|
||||
self.dismiss(animated: true, completion: nil)
|
||||
@@ -161,11 +157,13 @@ class RoomVC: BaseViewController, HiddenNavigationBarProtocol {
|
||||
|
||||
}
|
||||
private func dealWithChatData(chatData:NIMChatroom){
|
||||
self.topView.roomData = self.roomInfo
|
||||
self.micSeatView.roomData = self.roomInfo
|
||||
self.micSeatView.setTRTC()
|
||||
self.micSeatView.setMicList()
|
||||
self.menuView.roomUid = self.roomInfo?.roomId ?? ""
|
||||
topView.roomData = self.roomInfo
|
||||
micSeatView.roomData = self.roomInfo
|
||||
if let roomInfo = self.roomInfo{
|
||||
YinRoomAudMioanager.share.dealWithChatData(roomData:roomInfo)
|
||||
}
|
||||
micSeatView.setMicList()
|
||||
menuView.roomUid = self.roomInfo?.roomId ?? ""
|
||||
}
|
||||
private func dealWithRoomData(roomData:RoomDataModel){
|
||||
let uid = AuthManager.userUid
|
||||
@@ -231,6 +229,7 @@ class RoomVC: BaseViewController, HiddenNavigationBarProtocol {
|
||||
|
||||
return _chatListVC
|
||||
}()
|
||||
|
||||
}
|
||||
|
||||
extension RoomVC : NIMChatManagerDelegate, NIMChatroomManagerDelegate, NIMLoginManagerDelegate, NIMConversationManagerDelegate{
|
||||
|
Reference in New Issue
Block a user