mirror of
https://gitee.com/openharmony/interface_sdk_c
synced 2024-11-27 00:41:01 +00:00
20240923 ScreenCapture新增设置录屏最大帧率的接口
Signed-off-by: zhangqiang <zhangqiang342@huawei.com>
This commit is contained in:
parent
d1f578283c
commit
8b1e972b00
@ -98,5 +98,9 @@
|
||||
{
|
||||
"first_introduced": "12",
|
||||
"name": "OH_AVScreenCapture_SkipPrivacyMode"
|
||||
},
|
||||
{
|
||||
"first_introduced": "14",
|
||||
"name": "OH_AVScreenCapture_SetMaxVideoFrameRate"
|
||||
}
|
||||
]
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user