harmony 鸿蒙OH_AVRecorder_Config

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

OH_AVRecorder_Config

Overview

The OH_AVRecorder_Config struct describes the AVRecorder configuration.

System capability: SystemCapability.Multimedia.Media.AVRecorder

Since: 18

Related module: AVRecorder

Header file: avrecorder_base.h

Summary

Member Variables

Name Description
OH_AVRecorder_AudioSourceType audioSourceType Type of the audio source to record.
OH_AVRecorder_VideoSourceType videoSourceType Type of the video source to record.
OH_AVRecorder_Profile profile Audio and video encoding configuration.
char *url URL of the recording output file, in the format of fd://xx.
OH_AVRecorder_FileGenerationMode fileGenerationMode Mode for generating the recording output file.
OH_AVRecorder_Metadata metadata Metadata of the recorded media.

Member Variable Description

audioSourceType

OH_AVRecorder_AudioSourceType audioSourceType

Description

Type of the audio source to record.

videoSourceType

OH_AVRecorder_VideoSourceType videoSourceType

Description

Type of the video source to record.

profile

OH_AVRecorder_Profile profile

Description

Audio and video encoding configuration.

url

char *url

Description

URL of the recording output file, in the format of fd://xx.

fileGenerationMode

OH_AVRecorder_FileGenerationMode fileGenerationMode

Description

Mode for generating the recording output file.

metadata

OH_AVRecorder_Metadata metadata

Description

Metadata of the recorded media.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Media Kit

harmony 鸿蒙AVImageGenerator

harmony 鸿蒙AVMetadataExtractor

harmony 鸿蒙AVPlayer

harmony 鸿蒙AVPlayerCallback

harmony 鸿蒙AVRecorder

harmony 鸿蒙AVScreenCapture

harmony 鸿蒙OH_AVRecorder_EncoderInfo

harmony 鸿蒙OH_AVRecorder_Location

harmony 鸿蒙OH_AVRecorder_Metadata

0  赞