Skip to content

Commit d77d62f

Browse files
DickSmithNathanWalker
authored andcommitted
fix(android): CamcorderProfile.get has 2 overrides (#29)
1 parent e4ef208 commit d77d62f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/camera-plus.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ export class CameraPlus extends CameraPlusBase {
376376
this._mediaRecorder.setAudioSource(android.media.MediaRecorder.AudioSource.CAMCORDER);
377377
this._mediaRecorder.setVideoSource(android.media.MediaRecorder.VideoSource.CAMERA);
378378
// Step 3: Set a CamcorderProfile (requires API Level 8 or higher)
379-
this._mediaRecorder.setProfile(android.media.CamcorderProfile.get(android.media.CamcorderProfile.QUALITY_HIGH));
379+
this._mediaRecorder.setProfile(android.media.CamcorderProfile.get(this.cameraId, android.media.CamcorderProfile.QUALITY_HIGH));
380380
// Step 4: Set output file
381381
const videoPath = this._getOutputMediaFile(2).toString();
382382
this._videoPath = videoPath;

0 commit comments

Comments
 (0)