FPlayerStreamInfo
The detailed information of the media stream.
USTRUCT(BlueprintType)
struct FPlayerStreamInfo
{
GENERATED_BODY()
public:
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|PlayerStreamInfo")
int streamIndex = 0;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|PlayerStreamInfo")
EMEDIA_STREAM_TYPE streamType = EMEDIA_STREAM_TYPE::STREAM_TYPE_UNKNOWN;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|PlayerStreamInfo")
FString codecName = "";
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|PlayerStreamInfo")
FString language = "";
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|PlayerStreamInfo")
int videoFrameRate = 0;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|PlayerStreamInfo")
int videoBitRate = 0;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|PlayerStreamInfo")
int videoWidth = 0;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|PlayerStreamInfo")
int videoHeight = 0;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|PlayerStreamInfo")
int videoRotation = 0;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|PlayerStreamInfo")
int audioSampleRate = 0;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|PlayerStreamInfo")
int audioChannels = 0;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|PlayerStreamInfo")
int audioBitsPerSample = 0;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|PlayerStreamInfo")
int duration = 0;
FPlayerStreamInfo(){}
FPlayerStreamInfo(const agora::media::base::PlayerStreamInfo & AgoraData){
streamIndex = AgoraData.streamIndex;
streamType = (EMEDIA_STREAM_TYPE)AgoraData.streamType;
codecName = UTF8_TO_TCHAR(AgoraData.codecName);
language = UTF8_TO_TCHAR(AgoraData.language);
videoFrameRate = AgoraData.videoFrameRate;
videoBitRate = AgoraData.videoBitRate;
videoWidth = AgoraData.videoWidth;
videoHeight = AgoraData.videoHeight;
videoRotation = AgoraData.videoRotation;
audioSampleRate = AgoraData.audioSampleRate;
audioChannels = AgoraData.audioChannels;
audioBitsPerSample = AgoraData.audioBitsPerSample;
duration = AgoraData.duration;
}
agora::media::base::PlayerStreamInfo CreateAgoraData() const {
agora::media::base::PlayerStreamInfo AgoraData;
AgoraData.streamIndex = streamIndex;
AgoraData.streamType = (agora::media::base::MEDIA_STREAM_TYPE)streamType;
SET_UABT_FSTRING_TO_CHAR_ARRAY(AgoraData.codecName, codecName,agora::media::base::kMaxCharBufferLength)
SET_UABT_FSTRING_TO_CHAR_ARRAY(AgoraData.language, language, agora::media::base::kMaxCharBufferLength)
AgoraData.videoFrameRate = videoFrameRate;
AgoraData.videoBitRate = videoBitRate;
AgoraData.videoWidth = videoWidth;
AgoraData.videoHeight = videoHeight;
AgoraData.videoRotation = videoRotation;
AgoraData.audioSampleRate = audioSampleRate;
AgoraData.audioChannels = audioChannels;
AgoraData.audioBitsPerSample = audioBitsPerSample;
AgoraData.duration = duration;
return AgoraData;
}
void FreeAgoraData(agora::media::base::PlayerStreamInfo & AgoraData) const {
}
};
Attributes
- streamIndex
- The index of the media stream.
- streamType
- The type of the media stream. See EMEDIA_STREAM_TYPE.
- codecName
- The codec of the media stream.
- language
- The language of the media stream.
- videoFrameRate
- This parameter only takes effect for video streams, and indicates the video frame rate (fps).
- videoBitrate
- This parameter only takes effect for video streams, and indicates the video bitrate (bps).
- videoWidth
- This parameter only takes effect for video streams, and indicates the video width (pixel).
- videoHeight
- This parameter only takes effect for video streams, and indicates the video height (pixel).
- videoRotation
- This parameter only takes effect for video streams, and indicates the video rotation angle.
- audioSampleRate
- This parameter only takes effect for audio streams, and indicates the audio sample rate (Hz).
- audioChannels
- This parameter only takes effect for audio streams, and indicates the audio channel number.
- audioBitsPerSample
- This parameter only takes effect for audio streams, and indicates the bit number of each audio sample.
- duration
- The total duration (ms) of the media stream.