webContents - contents.setFrameRate(fps)

概述

若启用了离屏渲染,将帧率设置为指定值,仅接受 1 到 240 之间的整数。

基本信息

属性
模块 webContents
类型 Method
鸿蒙支持 支持