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 30e206487dbd2526a7c4919b3a03c2ea48213cf9..078df5d3fd9b3c4a9918840c8a5b13e4b4c56041 100644 --- a/multimedia/player_framework/avscreen_capture/libnative_avscreen_capture.ndk.json +++ b/multimedia/player_framework/avscreen_capture/libnative_avscreen_capture.ndk.json @@ -158,5 +158,9 @@ { "first_introduced": "20", "name": "OH_AVScreenCapture_StrategyForBFramesEncoding" + }, + { + "first_introduced": "20", + "name": "OH_AVScreenCapture_StrategyForPickerPopUp" } ] \ No newline at end of file diff --git a/multimedia/player_framework/native_avscreen_capture.h b/multimedia/player_framework/native_avscreen_capture.h index 086ae5038be9eb858f6e2fa983f0ea6d252d862a..ab6e5a95b12cec6c63affae0298fa86b7ef49907 100644 --- a/multimedia/player_framework/native_avscreen_capture.h +++ b/multimedia/player_framework/native_avscreen_capture.h @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + /** * @addtogroup AVScreenCapture * @{ @@ -627,6 +627,21 @@ OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_GetDisplayIdSelected(OH_AVScreenC */ OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_StrategyForBFramesEncoding( OH_AVScreenCapture_CaptureStrategy *strategy, bool value); + +/** + * @brief set whether to pop up the screen capture Picker + * @param {OH_AVScreenCapture_CaptureStrategy*} strategy Pointer to an OH_AVScreenCapture_CaptureStrategy instance + * @param {bool} value + * If set to false, it means that the APP don’t need to pop up the Picker after screen capture starts; + * if set to True, the Picker will pop up uniformly after screen capture starts; + * If not set, it means using the system recommended behavior. + * @return Function result code. + * {@link AV_SCREEN_CAPTURE_ERR_OK} if the execution is successful. + * {@link AV_SCREEN_CAPTURE_ERR_INVALID_VAL} strategy value is nullptr. + * @since 20 + */ +OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_StrategyForPickerPopUp( + OH_AVScreenCapture_CaptureStrategy *strategy, bool value); #ifdef __cplusplus } #endif