FSimulcastStreamConfig
视频小流的配置。
C++
USTRUCT(BlueprintType)
struct FSimulcastStreamConfig
{
GENERATED_BODY()
public:
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|SimulcastStreamConfig")
FVideoDimensions dimensions = FVideoDimensions();
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|SimulcastStreamConfig")
int kBitrate = 0;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|SimulcastStreamConfig")
int framerate = 0;
FSimulcastStreamConfig(){}
FSimulcastStreamConfig(const agora::rtc::SimulcastStreamConfig & AgoraData){
dimensions = FVideoDimensions(AgoraData.dimensions);
kBitrate = AgoraData.kBitrate;
framerate = AgoraData.framerate;
}
agora::rtc::SimulcastStreamConfig CreateAgoraData() const {
agora::rtc::SimulcastStreamConfig AgoraData;
AgoraData.dimensions = dimensions.CreateAgoraData();
AgoraData.kBitrate = kBitrate;
AgoraData.framerate = framerate;
return AgoraData;
}
void FreeAgoraData(agora::rtc::SimulcastStreamConfig& AgoraData) const {
dimensions.FreeAgoraData(AgoraData.dimensions);
}
};
dimensions
kBitrate
视频码率 (Kbps)。该参数无需设置,SDK 会根据你设定的视频分辨率和帧率自动匹配最合适的码率。
framerate
视频帧率 (fps)。默认值为 5。