|
|
|
@ -379,8 +379,7 @@ class RoomController extends GetxController with WidgetsBindingObserver { |
|
|
|
if (currentRole == CurrentRole.broadcaster) { |
|
|
|
try { |
|
|
|
// 先调用销毁 RTC 频道 API |
|
|
|
final destroyResponse = await _networkService.rtcApi |
|
|
|
.destroyRtcChannel(); |
|
|
|
final destroyResponse = await _networkService.rtcApi.destroyRtcChannel(); |
|
|
|
if (destroyResponse.data.isSuccess) { |
|
|
|
// 然后发送结束直播消息 |
|
|
|
final channelId = RTCManager.instance.currentChannelId; |
|
|
|
|