LastmileProbeConfig
用于配置 Last-mile 网络测试。
C++
struct LastmileProbeConfig {
bool probeUplink;
bool probeDownlink;
unsigned int expectedUplinkBitrate;
unsigned int expectedDownlinkBitrate;
};
probeUplink
设置是否测试上行网络:
- true:测试上行网络。例如,在频道场景为
LIVE_BROADCASTING时,观众用户不需要进行此测试。 - false:不测试上行网络。
probeDownlink
设置是否测试下行网络:
- true:测试下行网络。
- false:不测试下行网络。
expectedUplinkBitrate
本地用户期望的最大上行码率(bps),取值范围为 [100000, 5000000]。建议参考 setVideoEncoderConfiguration 设置该值。
expectedDownlinkBitrate
本地用户期望的最大下行码率(bps),取值范围为 [100000, 5000000]。