FPlayerPlaybackStats
当前播放的媒体资源的相关信息。
C++
USTRUCT(BlueprintType)
struct FPlayerPlaybackStats {
GENERATED_BODY()
public:
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|FPlayerPlaybackStats")
int videoFps = 0;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|FPlayerPlaybackStats")
int videoBitrateInKbps =0;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|FPlayerPlaybackStats")
int audioBitrateInKbps =0;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|FPlayerPlaybackStats")
int totalBitrateInKbps =0;
FPlayerPlaybackStats(){}
FPlayerPlaybackStats(const agora::media::base::PlayerPlaybackStats& AgoraData) {
videoFps = AgoraData.videoFps;
videoBitrateInKbps = AgoraData.videoBitrateInKbps;
audioBitrateInKbps = AgoraData.audioBitrateInKbps;
totalBitrateInKbps = AgoraData.totalBitrateInKbps;
}
agora::media::base::PlayerPlaybackStats CreateAgoraData() const {
agora::media::base::PlayerPlaybackStats AgoraData;
AgoraData.videoFps = videoFps;
AgoraData.videoBitrateInKbps = videoBitrateInKbps;
AgoraData.audioBitrateInKbps = audioBitrateInKbps;
AgoraData.totalBitrateInKbps = totalBitrateInKbps;
return AgoraData;
}
void FreeAgoraData(agora::media::base::PlayerPlaybackStats & AgoraData) const {
}
};
videoFps
视频帧率,单位为 fps。
videoBitrateInKbps
视频码率,单位为 kbps。
audioBitrateInKbps
音频码率,单位为 kbps。
totalBitrateInKbps
媒体流的总码率,单位为 kbps。