Tencent-RTC / TRTC_Web

High-quality WebRTC SDK
https://trtc.io/
106 stars 55 forks source link

[Q&A] 在WEB端 开启【只拉可视区域的视频流】功能 #117

Closed menkan closed 4 weeks ago

menkan commented 1 month ago

RTC SDK

按照 开启【只拉可视区域的视频流】功能 进行配置开启 只拉可视化区域

滚动远端用户列表后 不展示 video 标签( 回显视频流)

之前的远端用户因为不在可视化区域 video标签消失。重新滚动远端用户列表无法回显视频流

trtc.startRemoteVideo({
                view: userId,
                userId,
                streamType,
                option: {
                    small: true, // NOTE: 远端视频流推入,采用小流推入
                    receiveWhenViewVisible: true, // 可视视频流
                    viewRoot: document.getElementById('remote-box') as HTMLElement, // view for father element
                },
            });

想解决 隐藏远端用户重新展示如何 拉取视频流 问题

menkan commented 4 weeks ago

问题已解决。 在版本 V5.4.3 遇到该问题 最新版本 V5.7.1没问题