FEchoTestConfiguration
- Unreal Blueprint
更新时间不可用
音视频通话回路测试的配置。
USTRUCT(BlueprintType)
struct FEchoTestConfiguration
{
GENERATED_BODY()
public:
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|EchoTestConfiguration")
UImage* view = nullptr;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|EchoTestConfiguration")
bool enableAudio = true;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|EchoTestConfiguration")
bool enableVideo = true;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|EchoTestConfiguration")
FString token = "";
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|EchoTestConfiguration")
FString channelId = "";
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|EchoTestConfiguration")
int intervalInSeconds = 2;
FEchoTestConfiguration() {}
FEchoTestConfiguration(const agora::rtc::EchoTestConfiguration& AgoraData) {
view = nullptr; enableAudio = AgoraData.enableAudio;
enableVideo = AgoraData.enableVideo;
token = AgoraData.token;
channelId = AgoraData.channelId;
intervalInSeconds = AgoraData.intervalInSeconds;
}
agora::rtc::EchoTestConfiguration CreateAgoraData() const{
agora::rtc::EchoTestConfiguration AgoraData;
AgoraData.enableAudio = enableAudio;
AgoraData.enableVideo = enableVideo;
SET_UABT_FSTRING_TO_CONST_CHAR___MEMALLOC(AgoraData.token,this->token)
SET_UABT_FSTRING_TO_CONST_CHAR___MEMALLOC(AgoraData.channelId, this->channelId)
AgoraData.intervalInSeconds = intervalInSeconds;
return AgoraData;
}
void FreeAgoraData(agora::rtc::EchoTestConfiguration& AgoraData) const {
SET_UABT_FSTRING_TO_CONST_CHAR___MEMFREE(AgoraData.token)
SET_UABT_FSTRING_TO_CONST_CHAR___MEMFREE(AgoraData.channelId)
}
};属性
| 参数名 | 描述 |
|---|---|
view | |
enableAudio | |
enableVideo | |
token | 用于保证音视频通话回路测试安全性的 Token。如果你在控制台未启用 App 证书,则不需要向该参数传值;如果你在控制台已启用 App 证书,则必须向该参数传入 Token,且在你生成 Token 时使用的 |
channelId | |
intervalInSeconds |