wuyanan

ref |> 修复离开直播详情时,没有退出直播IM问题

... ... @@ -51,4 +51,7 @@ export class LiveDetailChatRoomController {
room.enterRoom()
}
}
disconnectLiveRoom() {
LiveRoomManager.sharedManager().disconnect()
}
}
\ No newline at end of file
... ...
... ... @@ -100,6 +100,7 @@ export struct DetailPlayLivePage {
Logger.info(TAG, `wyj-aboutToDisappear`)
await this.playerController?.stop()
await this.playerController?.release()
this.chatRoomController.disconnectLiveRoom()
}
configChatRoom() {
... ...
... ... @@ -84,6 +84,7 @@ export struct DetailPlayVLivePage {
aboutToDisappear(): void {
this.closeFullScreen()
this.chatRoomController.disconnectLiveRoom()
}
openFullScreen() {
... ...