SetLocalRenderTargetFps

Sets the maximum frame rate for rendering local video.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int SetLocalRenderTargetFps(EUABT_VIDEO_SOURCE_TYPE sourceType, int targetFps);

Applicable scenarios

In scenarios where the requirements for video rendering frame rate are not high (such as screen sharing or online education), you can call this method to set the maximum frame rate for local video rendering. The SDK will attempt to keep the actual frame rate of local rendering close to this value, which helps to reduce CPU consumption and improving system performance.

Call timing

You can call this method either before or after joining a channel.

Restrictions

None.

Parameters

sourceType
The type of the video source. See EUABT_VIDEO_SOURCE_TYPE.
targetFps
The capture frame rate (fps) of the local video. Sopported values are: 1, 7, 10, 15, 24, 30, 60.
CAUTION: Set this parameter to a value lower than the actual video frame rate; otherwise, the settings do not take effect.

Returns

  • 0: Success.
  • < 0: Failure.