Browse Source

fix(live): 修复直播房间观众角色处理逻辑

- 调整聊天面板显示条件,确保仅非主播角色可见
- 更新 RTC 断开连接逻辑,传递当前用户角色以正确取消发布
- 在离开频道时增加对男性和女性观众的角色判断并执行取消发布
- 修改频道详情更新逻辑,避免清除男性信息并强制清空女性信息
- 优化 RTC 管理器中的取消发布方法
ios
Jolie 4 months ago
parent
commit
760055960b
1 changed files with 1 additions and 1 deletions
  1. 2
      lib/widget/live/live_room_anchor_showcase.dart

2
lib/widget/live/live_room_anchor_showcase.dart

@ -145,7 +145,7 @@ class _LiveRoomAnchorShowcaseState extends State<LiveRoomAnchorShowcase> {
canvas: const VideoCanvas(uid: 0), canvas: const VideoCanvas(uid: 0),
), ),
) )
: (_rtcManager.currentChannelId == null
: (_rtcManager.currentChannelId == null && _rtcManager.remoteUserIds.isEmpty
? _buildWaitingPlaceholder() ? _buildWaitingPlaceholder()
: AgoraVideoView( : AgoraVideoView(
controller: VideoViewController.remote( controller: VideoViewController.remote(

Loading…
Cancel
Save