提交 6607e231 编写于 作者: X x30034819

录制bitrate数值订正 Signed-off-by: x30034819 <xieyijun3@huawei.com>

Signed-off-by: Nx30034819 <xieyijun3@huawei.com>
Change-Id: I4714ebf51692ed5a6a94c249b69104e76904f490
上级 8abddb69
......@@ -67,7 +67,7 @@ export class AVRecorderDemo {
let surfaceID; // 从getInputSurface获取surfaceID,传递给相机的videoOutput
await this.getFd('01.mp4');
// 音视频录制相关参数配置
// 音视频录制相关参数配置,配置参数以实际硬件设备支持的范围为准
let avProfile = {
audioBitrate : 48000,
audioChannels : 2,
......@@ -363,7 +363,7 @@ export class VideoRecorderDemo {
let surfaceID; // 从getInputSurface获取surfaceID,传递给相机的videoOutput
await this.getFd('01.mp4');
// 纯视频录制相关参数配置
// 纯视频录制相关参数配置,配置参数以实际硬件设备支持的范围为准
let videoProfile = {
fileFormat : media.ContainerFormatType.CFT_MPEG_4,
videoBitrate : 2000000,
......
......@@ -76,7 +76,7 @@ export class VideoRecorderDemo {
let surfaceID = null; // 用于保存getInputSurface返回的surfaceID
// 获取需要录制的视频的fd地址
await this.getFd('01.mp4');
// 录制相关参数配置
// 录制相关参数配置,配置参数以实际硬件设备支持的范围为准
let videoProfile = {
audioBitrate : 48000,
audioChannels : 2,
......
......@@ -1716,6 +1716,7 @@ prepare(config: AVRecorderConfig, callback: AsyncCallback\<void>): void
**示例:**
```js
// 配置参数以实际硬件设备支持的范围为准
let AVRecorderProfile = {
audioBitrate : 48000,
audioChannels : 2,
......@@ -1784,6 +1785,7 @@ prepare(config: AVRecorderConfig): Promise\<void>
**示例:**
```js
// 配置参数以实际硬件设备支持的范围为准
let AVRecorderProfile = {
audioBitrate : 48000,
audioChannels : 2,
......@@ -2599,6 +2601,7 @@ prepare(config: VideoRecorderConfig, callback: AsyncCallback\<void>): void;
**示例:**
```js
// 配置参数以实际硬件设备支持的范围为准
let videoProfile = {
audioBitrate : 48000,
audioChannels : 2,
......@@ -2669,6 +2672,7 @@ prepare(config: VideoRecorderConfig): Promise\<void>;
**示例:**
```js
// 配置参数以实际硬件设备支持的范围为准
let videoProfile = {
audioBitrate : 48000,
audioChannels : 2,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册