FSimulcastStreamConfig

The configuration of the low-quality video stream.

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);
	}
};

Attributes

dimensions
The video dimension. See FUABT_VideoDimensions.The default value is 50% of the high-quality video stream.
kBitrate
Video receive bitrate (Kbps), represented by an instantaneous value. This parameter does not need to be set. The SDK automatically matches the most suitable bitrate based on the video resolution and frame rate you set.
frameRate
The frame rate (fps) of the local video. The default value is 5.