setLocalRenderTargetFps abstract method
Future<void>
setLocalRenderTargetFps({
- required VideoSourceType sourceType,
- required int targetFps,
Sets the maximum frame rate for rendering local video.
sourceType
The type of the video source. See VideoSourceType.targetFps
The capture frame rate (fps) of the local video. Sopported values are: 1, 7, 10, 15, 24, 30, 60. Set this parameter to a value lower than the actual video frame rate; otherwise, the settings do not take effect.
Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.
Implementation
Future<void> setLocalRenderTargetFps(
{required VideoSourceType sourceType, required int targetFps});