setLocalRenderTargetFps abstract method
Future<void>
setLocalRenderTargetFps({
- required VideoSourceType sourceType,
- required int targetFps,
设置本地视频渲染的最大帧率。
sourceType视频源的类型,详见 VideoSourceType 。targetFps最大渲染帧率 (fps)。支持的参数值为:1、7、10、15、24、30、60。 请将此参数设置为低于视频实际帧率的渲染帧率,否则设置将不会生效。
Returns 方法成功调用时,无返回值;方法调用失败时,会抛出 AgoraRtcException 异常,你需要捕获异常并进行处理。详见错误码了解详情和解决建议。
Implementation
Future<void> setLocalRenderTargetFps(
{required VideoSourceType sourceType, required int targetFps});