README.md
1# AVRecorder
2
3### Introduction
4
5In this sample, you can use AVRecorder interfaces to record audio or video.
6
7### Required Permissions
8
9ohos.permission.MICROPHONE, which request the permission of microphone.
10
11ohos.permission.CAMERA, which request the permission of camera.
12
13ohos.permission.WRITE_MEDIA, which allows an app to write media files to the user's external storage.
14
15### Usage
16
171. On the home page, you can either choose **Video Recording** or **Audio Recording** button according to your purpose.
182. Click the **Video Recording** button to switch to the video recording page. You can click the setting button to choose video resolution. Click the start, pause, resume, stop button to control the recording process.
193. Click the **Audio Recording** button to switch to the audio recording page. You can click the setting button to choose audio sample rate. Click the start, pause, resume, stop button to control the recording process.
204. The files you have recorded can be found in Photos.
21
22### Constraints
23
241. This sample can only be run on standard-system devices that use the phone.
252. This sample is based on the stage model, which is supported from API version 9. You should manully fetch Full SDK from gitee and replace them in DevEco Studio.
263. DevEco Studio 3.1 Beta2 (Build Version:3.1.0.400, built on April 7, 2023) must be used.
273. Camera apis can only be used by system app. In order to run this sample, you should generate signature manually with hap-sign-tool.
28
29