Browse Source

fix(rtc): 修复远程用户加入时的渲染模式设置

- 在远程用户加入时异步设置隐藏渲染模式
- 禁用视频镜像模式以确保正确显示
- 修复了视频渲染相关的显示问题
master
Jolie 2 months ago
parent
commit
147bde330f
1 changed files with 1 additions and 1 deletions
  1. 2
      lib/rtc/rtc_manager.dart

2
lib/rtc/rtc_manager.dart

@ -159,7 +159,7 @@ class RTCManager {
(RtcConnection connection, int remoteUid, int elapsed) async {
print('用户加入,UID:$remoteUid');
_handleRemoteUserJoined(remoteUid);
await _engine?.setRemoteRenderMode(uid: remoteUid, renderMode: RenderModeType.renderModeHidden, mirrorMode: VideoMirrorModeType.videoMirrorModeDisabled);
// RTC类型判断是否执行 RoomController
// RoomController
if (type == RTCType.live) {

Loading…
Cancel
Save