Browse Source

修改云教练录制视频的音频编码率相关参数

Pq 7 months ago
parent
commit
b44c078f5d

+ 3 - 0
camerakit/src/main/java/com/wonderkiln/camerakit/api16/Camera1.java

@@ -963,6 +963,9 @@ public class Camera1 extends CameraImpl {
             CamcorderProfile profile = getCamcorderProfile(mVideoQuality);
             profile.videoBitRate = 900 * 1024;
             mMediaRecorder.setProfile(profile);
+            mMediaRecorder.setAudioChannels(2);
+            mMediaRecorder.setAudioEncodingBitRate(128000);
+            mMediaRecorder.setAudioSamplingRate(44100);
             if (videoFile == null)
                 videoFile = getVideoFile();
             if (videoFile == null) {