harmony 鸿蒙OH_AVScreenCaptureCallback
OH_AVScreenCaptureCallback
Overview
The OH_AVScreenCaptureCallback struct describes all the asynchronous callback function pointers of an OH_AVScreenCapture instance. To ensure the normal running of OH_AVScreenCapture, you must register the instance of this struct with the OH_AVScreenCapture instance and process the information reported by the callback functions.
From API version 12, you are advised to use OH_AVScreenCapture_OnError and OH_AVScreenCapture_OnBufferAvailable instead.
System capability: SystemCapability.Multimedia.Media.AVScreenCapture
Since: 10
Related module: AVScreenCapture
Header file: native_avscreen_capture_base.h
Summary
Member Variables
Name | Description |
---|---|
OH_AVScreenCaptureOnError onError | Pointer to a callback function that is called when an error occurs during the running of an OH_AVScreenCapture instance. For details, see OH_AVScreenCaptureOnError. |
OH_AVScreenCaptureOnAudioBufferAvailable onAudioBufferAvailable | Pointer to a callback function that is called when an audio buffer is available during the running of an OH_AVScreenCapture instance. For details, see OH_AVScreenCaptureOnAudioBufferAvailable. |
OH_AVScreenCaptureOnVideoBufferAvailable onVideoBufferAvailable | Pointer to a callback function that is called when a video buffer is available during the running of an OH_AVScreenCapture instance. For details, see OH_AVScreenCaptureOnVideoBufferAvailable. |
Member Variable Description
onAudioBufferAvailable
OH_AVScreenCaptureOnAudioBufferAvailable OH_AVScreenCaptureCallback::onAudioBufferAvailable
Pointer to a callback function that is called when an audio buffer is available during the running of an OH_AVScreenCapture instance. For details, see OH_AVScreenCaptureOnAudioBufferAvailable.
From API version 12, you are advised to use OH_AVScreenCapture_OnBufferAvailable instead.
Since: 10
onError
OH_AVScreenCaptureOnError OH_AVScreenCaptureCallback::onError
Pointer to a callback function that is called when an error occurs during the running of an OH_AVScreenCapture instance. For details, see OH_AVScreenCaptureOnError.
From API version 12, you are advised to use OH_AVScreenCapture_OnError instead.
Since: 10
onVideoBufferAvailable
OH_AVScreenCaptureOnVideoBufferAvailable OH_AVScreenCaptureCallback::onVideoBufferAvailable
Pointer to a callback function that is called when a video buffer is available during the running of an OH_AVScreenCapture instance. For details, see OH_AVScreenCaptureOnVideoBufferAvailable.
From API version 12, you are advised to use OH_AVScreenCapture_OnBufferAvailable instead.
Since: 10
你可能感兴趣的鸿蒙文章
harmony 鸿蒙OH_AVRecorder_Config
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦