FLastmileProbeConfig
Last mile 网络探测配置。
C++
USTRUCT(BlueprintType)
struct FLastmileProbeConfig
{
GENERATED_BODY()
public:
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|LastmileProbeConfig")
bool probeUplink = false;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|LastmileProbeConfig")
bool probeDownlink = false;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|LastmileProbeConfig")
int expectedUplinkBitrate = 0;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|LastmileProbeConfig")
int expectedDownlinkBitrate = 0;
FLastmileProbeConfig(){}
FLastmileProbeConfig(const agora::rtc::LastmileProbeConfig & AgoraData){
probeUplink = AgoraData.probeUplink;
probeDownlink = AgoraData.probeDownlink;
expectedUplinkBitrate = AgoraData.expectedUplinkBitrate;
expectedDownlinkBitrate = AgoraData.expectedDownlinkBitrate;
}
agora::rtc::LastmileProbeConfig CreateAgoraData() const{
agora::rtc::LastmileProbeConfig AgoraData;
AgoraData.probeUplink = probeUplink;
AgoraData.probeDownlink = probeDownlink;
AgoraData.expectedUplinkBitrate = expectedUplinkBitrate;
AgoraData.expectedDownlinkBitrate = expectedDownlinkBitrate;
return AgoraData;
}
void FreeAgoraData(agora::rtc::LastmileProbeConfig& AgoraData) const {
}
};
probeUplink
是否探测上行网络。有些用户,如直播频道中的普通观众,不需要进行网络探测:
true
: 探测上行网络。false
: 不探测上行网络。
probeDownlink
是否探测下行网络:
true
: 探测下行网络。false
: 不探测下行网络。
expectedUplinkBitrate
用户期望的最高发送码率,单位为 bps,范围为 [100000,5000000]。建议参考 SetVideoEncoderConfiguration 中的码率值设置该参数的值。
expectedDownlinkBitrate
用户期望的最高接收码率,单位为 bps,范围为 [100000,5000000]。