@capgo/camera-preview 6.5.26 → 6.5.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1118,8 +1118,6 @@ public class CameraActivity extends Fragment {
|
|
|
1118
1118
|
}
|
|
1119
1119
|
}
|
|
1120
1120
|
|
|
1121
|
-
mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
|
|
1122
|
-
mRecorder.setProfile(profile);
|
|
1123
1121
|
if (disableAudio) {
|
|
1124
1122
|
mRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER);
|
|
1125
1123
|
mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT);
|
|
@@ -1127,6 +1125,8 @@ public class CameraActivity extends Fragment {
|
|
|
1127
1125
|
mRecorder.setAudioSource(MediaRecorder.AudioSource.VOICE_RECOGNITION);
|
|
1128
1126
|
}
|
|
1129
1127
|
|
|
1128
|
+
mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
|
|
1129
|
+
mRecorder.setProfile(profile);
|
|
1130
1130
|
mRecorder.setOutputFile(filePath);
|
|
1131
1131
|
mRecorder.setOrientationHint(mOrientationHint);
|
|
1132
1132
|
mRecorder.setMaxDuration(maxDuration);
|