openharmony 鸿蒙 capi-avscreencapture-oh-avscreencapturecallback

2026-08-25 浏览 (1)

OH_AVScreenCaptureCallback

typedef struct OH_AVScreenCaptureCallback {...} OH_AVScreenCaptureCallback

Overview

Defines 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 to process the information reported by the callback functions.

Starting 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

NameDescription
OH_AVScreenCaptureOnError onErrorCallback function invoked when an error occurs during the running of an OH_AVScreenCapture instance.
Starting from API version 12, you are advised to use OH_AVScreenCapture_OnError instead.
OH_AVScreenCaptureOnAudioBufferAvailable onAudioBufferAvailableCallback function invoked when an audio buffer is available during the running of an OH_AVScreenCapture instance.
Starting from API version 12, you are advised to use OH_AVScreenCapture_OnBufferAvailable instead.
OH_AVScreenCaptureOnVideoBufferAvailable onVideoBufferAvailableCallback function invoked when a video buffer is available during the running of an OH_AVScreenCapture instance.
Starting from API version 12, you are advised to use OH_AVScreenCapture_OnBufferAvailable instead.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-avrecorder-oh-avrecorder-range

openharmony 鸿蒙 errorcode-media

openharmony 鸿蒙 capi-avplayer

openharmony 鸿蒙 capi-avplayer-base-h

openharmony 鸿蒙 capi-avimage-generator-h

openharmony 鸿蒙 capi-avscreencapture-oh-rect

openharmony 鸿蒙 capi-videoprocessing-videoprocessing-callback

openharmony 鸿蒙 capi-avsinkbase

openharmony 鸿蒙 capi-avmetadataextractor

openharmony 鸿蒙 capi-avscreencapture-oh-multidisplaycapability

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/yNDOcQ9V