Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
c1a02560
D
Docs
项目概览
OpenHarmony
/
Docs
1 年多 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
c1a02560
编写于
12月 05, 2022
作者:
O
openharmony_ci
提交者:
Gitee
12月 05, 2022
浏览文件
操作
浏览文件
下载
差异文件
!12111 资料文档一致性问题修改
Merge pull request !12111 from FULIZHONG/1205ziliao
上级
c64a2251
4e547551
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
88 addition
and
86 deletion
+88
-86
zh-cn/application-dev/reference/apis/js-apis-media.md
zh-cn/application-dev/reference/apis/js-apis-media.md
+88
-86
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-media.md
浏览文件 @
c1a02560
...
...
@@ -142,9 +142,9 @@ createVideoRecorder(callback: AsyncCallback\<[VideoRecorder](#videorecorder9)>):
以下错误码的详细介绍请参见
[
媒体错误码
](
../errorcodes/errorcode-media.md
)
| 错误码ID | 错误信息 |
| -------- | --------- |
| 5400101 | No memory |
| 错误码ID | 错误信息
|
| -------- | ---------
---------------------
|
| 5400101 | No memory
. Return by callback.
|
**示例:**
...
...
@@ -182,9 +182,9 @@ createVideoRecorder(): Promise<[VideoRecorder](#videorecorder9)>
以下错误码的详细介绍请参见
[
媒体错误码
](
../errorcodes/errorcode-media.md
)
| 错误码ID | 错误信息 |
| -------- | --------- |
| 5400101 | No memory |
| 错误码ID | 错误信息
|
| -------- | ---------
--------------------
|
| 5400101 | No memory
. Return by promise.
|
**示例:**
...
...
@@ -1916,12 +1916,12 @@ prepare(config: VideoRecorderConfig, callback: AsyncCallback\<void>): void;
以下错误码的详细介绍请参见
[
媒体错误码
](
../errorcodes/errorcode-media.md
)
| 错误码ID | 错误信息 |
| -------- | ------------------ |
| 201 | Permission denied |
| 401 | Parameter error |
| 5400102 | Operate not permit |
| 5400105 | Service died |
| 错误码ID | 错误信息
|
| -------- | ------------------
---------------------
|
| 201 | Permission denied
. Return by callback.
|
| 401 | Parameter error
. Return by callback.
|
| 5400102 | Operate not permit
. Return by callback.
|
| 5400105 | Service died
. Return by callback.
|
**示例:**
...
...
@@ -1986,12 +1986,12 @@ prepare(config: VideoRecorderConfig): Promise\<void>;
以下错误码的详细介绍请参见
[
媒体错误码
](
../errorcodes/errorcode-media.md
)
| 错误码ID | 错误信息 |
| -------- | ------------------ |
| 201 | Permission denied |
| 401 | Parameter error |
| 5400102 | Operate not permit |
| 5400105 | Service died |
| 错误码ID | 错误信息
|
| -------- | ------------------
--------------------
|
| 201 | Permission denied
. Return by promise.
|
| 401 | Parameter error
. Return by promise.
|
| 5400102 | Operate not permit
. Return by promise.
|
| 5400105 | Service died
. Return by promise.
|
**示例:**
...
...
@@ -2050,11 +2050,11 @@ getInputSurface(callback: AsyncCallback\<string>): void;
以下错误码的详细介绍请参见
[
媒体错误码
](
../errorcodes/errorcode-media.md
)
| 错误码ID | 错误信息 |
| -------- | ------------------ |
| 5400102 | Operate not permit |
| 5400103 | IO error |
| 5400105 | Service died |
| 错误码ID | 错误信息
|
| -------- | ------------------
---------------------
|
| 5400102 | Operate not permit
. Return by callback.
|
| 5400103 | IO error
. Return by callback.
|
| 5400105 | Service died
. Return by callback.
|
**示例:**
...
...
@@ -2095,11 +2095,11 @@ getInputSurface(): Promise\<string>;
以下错误码的详细介绍请参见
[
媒体错误码
](
../errorcodes/errorcode-media.md
)
| 错误码ID | 错误信息 |
| -------- | ------------------ |
| 5400102 | Operate not permit |
| 5400103 | IO error |
| 5400105 | Service died |
| 错误码ID | 错误信息
|
| -------- | ------------------
--------------------
|
| 5400102 | Operate not permit
. Return by promise.
|
| 5400103 | IO error
. Return by promise.
|
| 5400105 | Service died
. Return by promise.
|
**示例:**
...
...
@@ -2136,11 +2136,11 @@ start(callback: AsyncCallback\<void>): void;
以下错误码的详细介绍请参见
[
媒体错误码
](
../errorcodes/errorcode-media.md
)
| 错误码ID | 错误信息 |
| -------- | ------------------ |
| 5400102 | Operate not permit |
| 5400103 | IO error |
| 5400105 | Service died |
| 错误码ID | 错误信息
|
| -------- | ------------------
---------------------
|
| 5400102 | Operate not permit
. Return by callback.
|
| 5400103 | IO error
. Return by callback.
|
| 5400105 | Service died
. Return by callback.
|
**示例:**
...
...
@@ -2177,11 +2177,11 @@ start(): Promise\<void>;
以下错误码的详细介绍请参见
[
媒体错误码
](
../errorcodes/errorcode-media.md
)
| 错误码ID | 错误信息 |
| -------- | ------------------ |
| 5400102 | Operate not permit |
| 5400103 | IO error |
| 5400105 | Service died |
| 错误码ID | 错误信息
|
| -------- | ------------------
--------------------
|
| 5400102 | Operate not permit
. Return by promise.
|
| 5400103 | IO error
. Return by promise.
|
| 5400105 | Service died
. Return by promise.
|
**示例:**
...
...
@@ -2216,11 +2216,11 @@ pause(callback: AsyncCallback\<void>): void;
以下错误码的详细介绍请参见
[
媒体错误码
](
../errorcodes/errorcode-media.md
)
| 错误码ID | 错误信息 |
| -------- | ------------------ |
| 5400102 | Operate not permit |
| 5400103 | IO error |
| 5400105 | Service died |
| 错误码ID | 错误信息
|
| -------- | ------------------
---------------------
|
| 5400102 | Operate not permit
. Return by callback.
|
| 5400103 | IO error
. Return by callback.
|
| 5400105 | Service died
. Return by callback.
|
**示例:**
...
...
@@ -2257,11 +2257,11 @@ pause(): Promise\<void>;
以下错误码的详细介绍请参见
[
媒体错误码
](
../errorcodes/errorcode-media.md
)
| 错误码ID | 错误信息 |
| -------- | ------------------ |
| 5400102 | Operate not permit |
| 5400103 | IO error |
| 5400105 | Service died |
| 错误码ID | 错误信息
|
| -------- | ------------------
--------------------
|
| 5400102 | Operate not permit
. Return by promise.
|
| 5400103 | IO error
. Return by promise.
|
| 5400105 | Service died
. Return by promise.
|
**示例:**
...
...
@@ -2294,11 +2294,11 @@ resume(callback: AsyncCallback\<void>): void;
以下错误码的详细介绍请参见
[
媒体错误码
](
../errorcodes/errorcode-media.md
)
| 错误码ID | 错误信息 |
| -------- | ------------------ |
| 5400102 | Operate not permit |
| 5400103 | IO error |
| 5400105 | Service died |
| 错误码ID | 错误信息
|
| -------- | ------------------
---------------------
|
| 5400102 | Operate not permit
. Return by callback.
|
| 5400103 | IO error
. Return by callback.
|
| 5400105 | Service died
. Return by callback.
|
**示例:**
...
...
@@ -2333,11 +2333,11 @@ resume(): Promise\<void>;
以下错误码的详细介绍请参见
[
媒体错误码
](
../errorcodes/errorcode-media.md
)
| 错误码ID | 错误信息 |
| -------- | ------------------ |
| 5400102 | Operate not permit |
| 5400103 | IO error |
| 5400105 | Service died |
| 错误码ID | 错误信息
|
| -------- | ------------------
--------------------
|
| 5400102 | Operate not permit
. Return by promise.
|
| 5400103 | IO error
. Return by promise.
|
| 5400105 | Service died
. Return by promise.
|
**示例:**
...
...
@@ -2372,11 +2372,11 @@ stop(callback: AsyncCallback\<void>): void;
以下错误码的详细介绍请参见
[
媒体错误码
](
../errorcodes/errorcode-media.md
)
| 错误码ID | 错误信息 |
| -------- | ------------------ |
| 5400102 | Operate not permit |
| 5400103 | IO error |
| 5400105 | Service died |
| 错误码ID | 错误信息
|
| -------- | ------------------
---------------------
|
| 5400102 | Operate not permit
. Return by callback.
|
| 5400103 | IO error
. Return by callback.
|
| 5400105 | Service died
. Return by callback.
|
**示例:**
...
...
@@ -2413,11 +2413,11 @@ stop(): Promise\<void>;
以下错误码的详细介绍请参见
[
媒体错误码
](
../errorcodes/errorcode-media.md
)
| 错误码ID | 错误信息 |
| -------- | ------------------ |
| 5400102 | Operate not permit |
| 5400103 | IO error |
| 5400105 | Service died |
| 错误码ID | 错误信息
|
| -------- | ------------------
--------------------
|
| 5400102 | Operate not permit
. Return by promise.
|
| 5400103 | IO error
. Return by promise.
|
| 5400105 | Service died
. Return by promise.
|
**示例:**
...
...
@@ -2450,9 +2450,9 @@ release(callback: AsyncCallback\<void>): void;
以下错误码的详细介绍请参见
[
媒体错误码
](
../errorcodes/errorcode-media.md
)
| 错误码ID | 错误信息 |
| -------- | ------------ |
| 5400105 | Service died |
| 错误码ID | 错误信息
|
| -------- | ------------
---------------------
|
| 5400105 | Service died
. Return by callback.
|
**示例:**
...
...
@@ -2487,9 +2487,9 @@ release(): Promise\<void>;
以下错误码的详细介绍请参见
[
媒体错误码
](
../errorcodes/errorcode-media.md
)
| 错误码ID | 错误信息 |
| -------- | ------------ |
| 5400105 | Service died |
| 错误码ID | 错误信息
|
| -------- | ------------
---------------------
|
| 5400105 | Service died
. Return by callback.
|
**示例:**
...
...
@@ -2524,10 +2524,10 @@ reset(callback: AsyncCallback\<void>): void;
以下错误码的详细介绍请参见
[
媒体错误码
](
../errorcodes/errorcode-media.md
)
| 错误码ID | 错误信息 |
| -------- | ------------ |
| 5400103 | IO error |
| 5400105 | Service died |
| 错误码ID | 错误信息
|
| -------- | ------------
---------------------
|
| 5400103 | IO error
. Return by callback.
|
| 5400105 | Service died
. Return by callback.
|
**示例:**
...
...
@@ -2564,10 +2564,10 @@ reset(): Promise\<void>;
以下错误码的详细介绍请参见
[
媒体错误码
](
../errorcodes/errorcode-media.md
)
| 错误码ID | 错误信息 |
| -------- | ------------ |
| 5400103 | IO error |
| 5400105 | Service died |
| 错误码ID | 错误信息
|
| -------- | ------------
--------------------
|
| 5400103 | IO error
. Return by promise.
|
| 5400105 | Service died
. Return by promise.
|
**示例:**
...
...
@@ -2599,10 +2599,10 @@ on(type: 'error', callback: ErrorCallback): void
以下错误码的详细介绍请参见
[
媒体错误码
](
../errorcodes/errorcode-media.md
)
| 错误码ID | 错误信息 |
| -------- | ------------ |
| 5400103 | IO error |
| 5400105 | Service died |
| 错误码ID | 错误信息
|
| -------- | ------------
---------------------
|
| 5400103 | IO error
. Return by callback.
|
| 5400105 | Service died
. Return by callback.
|
**示例:**
...
...
@@ -2619,6 +2619,8 @@ videoRecorder.on('error', (error) => { // 设
**系统能力:**
SystemCapability.Multimedia.Media.VideoRecorder
**系统接口:**
该接口为系统接口
| 名称 | 类型 | 说明 |
| -------- | ------ | ---------------------- |
| idle | string | 视频录制空闲。 |
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录