未验证 提交 034e86dc 编写于 作者: S shuboxu 提交者: Gitee

update en/application-dev/media/video-recording.md.

Signed-off-by: Nshuboxu <xushubo1@huawei.com>
上级 e2859dcc
...@@ -138,9 +138,7 @@ Refer to the sample code below to complete the process of starting, pausing, res ...@@ -138,9 +138,7 @@ Refer to the sample code below to complete the process of starting, pausing, res
```ts ```ts
import media from '@ohos.multimedia.media' import media from '@ohos.multimedia.media'
import { BusinessError } from '@ohos.base'; import { BusinessError } from '@ohos.base';
const TAG = 'VideoRecorderDemo:' const TAG = 'VideoRecorderDemo:'
class AVProfile { class AVProfile {
fileFormat: media.ContainerFormatType; fileFormat: media.ContainerFormatType;
videoBitrate: number; videoBitrate: number;
...@@ -149,14 +147,12 @@ class AVProfile { ...@@ -149,14 +147,12 @@ class AVProfile {
videoFrameHeight: number; videoFrameHeight: number;
videoFrameRate: number; videoFrameRate: number;
} }
class AVConfig { class AVConfig {
videoSourceType: media.VideoSourceType; videoSourceType: media.VideoSourceType;
profile: AVProfile; profile: AVProfile;
url: string; url: string;
rotation: number; rotation: number;
} }
export class VideoRecorderDemo { export class VideoRecorderDemo {
private avRecorder: media.AVRecorder; private avRecorder: media.AVRecorder;
private videoOutSurfaceId: string; private videoOutSurfaceId: string;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册