|
|
@ -9,6 +9,7 @@ import 'package:get/get.dart'; |
|
|
import '../controller/discover/room_controller.dart'; |
|
|
import '../controller/discover/room_controller.dart'; |
|
|
import '../controller/message/call_controller.dart'; |
|
|
import '../controller/message/call_controller.dart'; |
|
|
import '../pages/discover/live_room_page.dart'; |
|
|
import '../pages/discover/live_room_page.dart'; |
|
|
|
|
|
import '../service/live_chat_message_service.dart'; |
|
|
|
|
|
|
|
|
enum RTCType { |
|
|
enum RTCType { |
|
|
call, // 通话(语音/视频通话) |
|
|
call, // 通话(语音/视频通话) |
|
|
@ -208,6 +209,11 @@ class RTCManager { |
|
|
channelId != null && |
|
|
channelId != null && |
|
|
channelId.isNotEmpty) { |
|
|
channelId.isNotEmpty) { |
|
|
final roomController = Get.find<RoomController>(); |
|
|
final roomController = Get.find<RoomController>(); |
|
|
|
|
|
if(remoteUid == roomController.rtcChannelDetail.value?.anchorInfo?.uid){ |
|
|
|
|
|
await roomController.leaveChannel(); |
|
|
|
|
|
// 调用 LiveChatMessageService 处理结束直播消息 |
|
|
|
|
|
LiveChatMessageService.instance.handleEndLiveMessage(); |
|
|
|
|
|
} |
|
|
await roomController.fetchRtcChannelDetail(channelId); |
|
|
await roomController.fetchRtcChannelDetail(channelId); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|