harmony 鸿蒙OH_AVScreenCaptureCallback

  • 2025-06-12
  • 浏览 (3)

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.

Since: 10

Related module: AVScreenCapture

Header file: native_avscreen_capture_base.h

Summary

Member Variables

|Name|Description| |–|–| |OH_AVScreenCaptureOnError onError|Callback function invoked when an error occurs during the running of an OH_AVScreenCapture instance.
Since API version 12, you are advised to use OH_AVScreenCapture_OnError instead.| |OH_AVScreenCaptureOnAudioBufferAvailable onAudioBufferAvailable|Callback function invoked when an audio buffer is available during the running of an OH_AVScreenCapture instance.
Since API version 12, you are advised to use OH_AVScreenCapture_OnBufferAvailable instead.| |OH_AVScreenCaptureOnVideoBufferAvailable onVideoBufferAvailable|Callback function invoked when a video buffer is available during the running of an OH_AVScreenCapture instance.
Since API version 12, you are advised to use OH_AVScreenCapture_OnBufferAvailable instead.|

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Media Kit

harmony 鸿蒙AVImageGenerator

harmony 鸿蒙AVMetadataExtractor

harmony 鸿蒙AVPlayer

harmony 鸿蒙AVPlayerCallback

harmony 鸿蒙AVRecorder

harmony 鸿蒙AVScreenCapture

harmony 鸿蒙OH_AVRecorder_Config

harmony 鸿蒙OH_AVRecorder_EncoderInfo

harmony 鸿蒙OH_AVRecorder_Location

0  赞