setRemoteRenderTargetFps
Sets the maximum frame rate for rendering remote video.
virtual int setRemoteRenderTargetFps(int targetFps) = 0;
- Since
- v4.5.0
Applicable scenarios
In scenarios where the video rendering frame rate is not critical (e.g., screen sharing, online education) or when the remote users are using mid-to-low-end devices, you can call this method to set the maximum frame rate for video rendering on the remote client. The SDK will attempt to render the actual frame rate as close as possible to this value, which helps to reduce CPU consumption and improve system performance.
Call timing
You can call this method either before or after joining a channel.
Restrictions
None.
Parameters
- 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.