提交 0d21b1c4 编写于 作者: X x30034819

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

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