20240923 ScreenCapture新增设置录屏最大帧率的接口

Signed-off-by: zhangqiang <zhangqiang342@huawei.com>
This commit is contained in:
zhangqiang 2024-09-23 11:39:18 +08:00
parent d1f578283c
commit 8b1e972b00
2 changed files with 19 additions and 0 deletions

View File

@ -98,5 +98,9 @@
{
"first_introduced": "12",
"name": "OH_AVScreenCapture_SkipPrivacyMode"
},
{
"first_introduced": "14",
"name": "OH_AVScreenCapture_SetMaxVideoFrameRate"
}
]

View File

@ -416,6 +416,21 @@ OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_ResizeCanvas(struct OH_AVScreenCa
*/
OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_SkipPrivacyMode(struct OH_AVScreenCapture *capture,
int32_t *windowIDs, int32_t windowCount);
/**
* @brief set up the max number of video frame per second
* @syscap SystemCapability.Multimedia.Media.AVScreenCapture
* @param capture Pointer to an OH_AVScreenCapture instance
* @param max frame rate of video
* @return Function result code.
* {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful.
* {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} input capture is nullptr or frameRate is not support.
* {@link AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT} opertation not be permitted.
* @since 14
* @version 1.0
*/
OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_SetMaxVideoFrameRate(struct OH_AVScreenCapture *capture,
int32_t frameRate);
#ifdef __cplusplus
}
#endif