From 64a4d9366b048bf456b650145b99de038c902a01 Mon Sep 17 00:00:00 2001 From: Trouvaille Date: Fri, 23 May 2025 15:54:47 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=B1=8F=E5=B9=95=E5=BD=95=E5=88=B6?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=AE=BE=E7=BD=AE=E9=9A=90=E7=A7=81=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E5=B1=8F=E8=94=BD=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Trouvaille --- .../player_framework/native_avscreen_capture.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/multimedia/player_framework/native_avscreen_capture.h b/multimedia/player_framework/native_avscreen_capture.h index eb62b5feb..3d078f65a 100644 --- a/multimedia/player_framework/native_avscreen_capture.h +++ b/multimedia/player_framework/native_avscreen_capture.h @@ -526,6 +526,22 @@ OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_StrategyForKeepCaptureDuringCall( */ OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_SetCaptureContentChangedCallback(struct OH_AVScreenCapture *capture, OH_AVScreenCapture_OnCaptureContentChanged callback, void *userData); + +/** + * @brief Set the fill mode for screen capture when a privacy window exists + * @syscap SystemCapability.Multimedia.Media.AVScreenCapture + * @param {OH_AVScreenCapture_CaptureStrategy*} strategy Pointer to an OH_AVScreenCapture_CaptureStrategy instance + * @param {int32_t} value + * If set to 0, it means that when there is a privacy window interface, the output screen image is completely black. + * If set to 1, it means that when there is a privacy window interface, only the privacy window area of the output screen becomes black, + * and other values returns an error. + * @return Function result code. + * {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful. + * {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} strategy is nullptr or value is invalid. + * @since 20 + */ +OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_StrategyForPrivacyMaskMode( + OH_AVScreenCapture_CaptureStrategy *strategy, int32_t value); #ifdef __cplusplus } #endif -- Gitee From c64ba91550cbe8257d26e08d906cc95c987b957e Mon Sep 17 00:00:00 2001 From: Trouvaille Date: Fri, 23 May 2025 15:57:26 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E5=B1=8F=E5=B9=95=E5=BD=95=E5=88=B6?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=AE=BE=E7=BD=AE=E9=9A=90=E7=A7=81=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E5=B1=8F=E8=94=BD=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Trouvaille --- .../avscreen_capture/libnative_avscreen_capture.ndk.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/multimedia/player_framework/avscreen_capture/libnative_avscreen_capture.ndk.json b/multimedia/player_framework/avscreen_capture/libnative_avscreen_capture.ndk.json index 0c790e079..e287be198 100644 --- a/multimedia/player_framework/avscreen_capture/libnative_avscreen_capture.ndk.json +++ b/multimedia/player_framework/avscreen_capture/libnative_avscreen_capture.ndk.json @@ -130,5 +130,9 @@ { "first_introduced": "20", "name": "OH_AVScreenCapture_SetCaptureContentChangedCallback" + }, + { + "first_introduced": "20", + "name": "OH_AVScreenCapture_StrategyForPrivacyMaskMode" } ] \ No newline at end of file -- Gitee From f2fb22ac576b7e9d406558531550ff125042828d Mon Sep 17 00:00:00 2001 From: Trouvaille Date: Wed, 28 May 2025 15:47:18 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E5=B1=8F=E5=B9=95=E5=BD=95=E5=88=B6?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=AE=BE=E7=BD=AE=E9=9A=90=E7=A7=81=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E5=B1=8F=E8=94=BD=E6=A8=A1=E5=BC=8F=E6=96=B0=E5=A2=9E?= =?UTF-8?q?NDK=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Trouvaille --- multimedia/player_framework/native_avscreen_capture.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/multimedia/player_framework/native_avscreen_capture.h b/multimedia/player_framework/native_avscreen_capture.h index 18d784d31..fd4fadf20 100644 --- a/multimedia/player_framework/native_avscreen_capture.h +++ b/multimedia/player_framework/native_avscreen_capture.h @@ -546,9 +546,9 @@ OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_SetCaptureArea(struct OH_AVScreen * @syscap SystemCapability.Multimedia.Media.AVScreenCapture * @param {OH_AVScreenCapture_CaptureStrategy*} strategy Pointer to an OH_AVScreenCapture_CaptureStrategy instance * @param {int32_t} value - * If set to 0, it means that when there is a privacy window interface, the output screen image is completely black. - * If set to 1, it means that when there is a privacy window interface, only the privacy window area of the output screen becomes black, - * and other values returns an error. + * If set to 0, it means that when there is a privacy window interface, the output screen image is completely black. + * If set to 1, it means that when there is a privacy window interface, + * only the privacy window area of the output screen becomes black, and other values returns an error. * @return Function result code. * {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful. * {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} strategy is nullptr or value is invalid. -- Gitee From 282313c00eb5e798eea0fad7805d718a266d7ccc Mon Sep 17 00:00:00 2001 From: Trouvaille Date: Thu, 5 Jun 2025 10:28:23 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E5=B1=8F=E5=B9=95=E5=BD=95=E5=88=B6?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=AE=BE=E7=BD=AE=E9=9A=90=E7=A7=81=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E5=B1=8F=E8=94=BD=E6=A8=A1=E5=BC=8F=E6=96=B0=E5=A2=9E?= =?UTF-8?q?NDK=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Trouvaille --- multimedia/player_framework/native_avscreen_capture.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/multimedia/player_framework/native_avscreen_capture.h b/multimedia/player_framework/native_avscreen_capture.h index fd4fadf20..ff900caff 100644 --- a/multimedia/player_framework/native_avscreen_capture.h +++ b/multimedia/player_framework/native_avscreen_capture.h @@ -547,11 +547,11 @@ OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_SetCaptureArea(struct OH_AVScreen * @param {OH_AVScreenCapture_CaptureStrategy*} strategy Pointer to an OH_AVScreenCapture_CaptureStrategy instance * @param {int32_t} value * If set to 0, it means that when there is a privacy window interface, the output screen image is completely black. - * If set to 1, it means that when there is a privacy window interface, - * only the privacy window area of the output screen becomes black, and other values returns an error. + * If set to 1, it means that when there is a privacy window interface, only the privacy window area of the output screen becomes black, + * and other values returns an error. * @return Function result code. - * {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful. - * {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} strategy is nullptr or value is invalid. + * {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful. + * {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} strategy is nullptr or value is invalid. * @since 20 */ OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_StrategyForPrivacyMaskMode( -- Gitee From 04b918da78b7c9215493933bc7da3048e3ffd510 Mon Sep 17 00:00:00 2001 From: Trouvaille Date: Thu, 5 Jun 2025 10:45:55 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E5=B1=8F=E5=B9=95=E5=BD=95=E5=88=B6?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=AE=BE=E7=BD=AE=E9=9A=90=E7=A7=81=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E5=B1=8F=E8=94=BD=E6=A8=A1=E5=BC=8F=E6=96=B0=E5=A2=9E?= =?UTF-8?q?NDK=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Trouvaille --- multimedia/player_framework/native_avscreen_capture.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/multimedia/player_framework/native_avscreen_capture.h b/multimedia/player_framework/native_avscreen_capture.h index ff900caff..a5abf9c91 100644 --- a/multimedia/player_framework/native_avscreen_capture.h +++ b/multimedia/player_framework/native_avscreen_capture.h @@ -546,12 +546,12 @@ OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_SetCaptureArea(struct OH_AVScreen * @syscap SystemCapability.Multimedia.Media.AVScreenCapture * @param {OH_AVScreenCapture_CaptureStrategy*} strategy Pointer to an OH_AVScreenCapture_CaptureStrategy instance * @param {int32_t} value - * If set to 0, it means that when there is a privacy window interface, the output screen image is completely black. - * If set to 1, it means that when there is a privacy window interface, only the privacy window area of the output screen becomes black, - * and other values returns an error. + * If set to 0, it means that when there is a privacy window interface, the output screen image is completely black. + * If set to 1, it means that when there is a privacy window interface, only the privacy window area of the output screen becomes black, + * and other values returns an error. * @return Function result code. - * {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful. - * {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} strategy is nullptr or value is invalid. + * {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful. + * {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} strategy is nullptr or value is invalid. * @since 20 */ OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_StrategyForPrivacyMaskMode( -- Gitee