FSrcInfo
媒体资源播放时的视频码率相关信息。
C++
USTRUCT(BlueprintType)
struct FSrcInfo {
GENERATED_BODY()
public:
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|SrcInfo")
int bitrateInKbps = 0;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|SrcInfo")
FString name = "";
FSrcInfo(){}
FSrcInfo(const agora::media::base::SrcInfo& srcInfo) {
bitrateInKbps = srcInfo.bitrateInKbps;
name = UTF8_TO_TCHAR(srcInfo.name);
}
agora::media::base::SrcInfo CreateAgoraData() const {
agora::media::base::SrcInfo srcInfo;
srcInfo.bitrateInKbps = bitrateInKbps;
SET_UABT_FSTRING_TO_CONST_CHAR___MEMALLOC(srcInfo.name,name)
return srcInfo;
}
void FreeAgoraData(agora::media::base::SrcInfo& srcInfo) const {
SET_UABT_FSTRING_TO_CONST_CHAR___MEMFREE(srcInfo.name)
}
};
bitrateInKbps
媒体资源播放时的视频码率(Kbps)。
name
媒体资源的名字。