Skip to content

Commit

Permalink
startRecording instead of startRecordingToOutputFileURL
Browse files Browse the repository at this point in the history
  • Loading branch information
YushraJewon committed Oct 4, 2024
1 parent b5e53fb commit bdd0d86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ios/CameraSessionManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ - (void)startRecording:(NSURL *)fileURL recordingDelegate:(id<AVCaptureFileOutpu
if ([connection isVideoOrientationSupported]) {
connection.videoOrientation = [self getCurrentOrientation];
}
[self.movieFileOutput startRecordingToOutputFileURL:fileURL recordingDelegate:recordingDelegate];
[self.movieFileOutput startRecordingL:fileURL recordingDelegate:recordingDelegate];
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/ios/SimpleCameraPreview.m
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ - (void)startVideoCapture:(CDVInvokedUrlCommand*)command {
NSString* uniqueFileName = [NSString stringWithFormat:@"%@.mp4",[[NSUUID UUID] UUIDString]];
NSString *dataPath = [libraryDirectory stringByAppendingPathComponent:uniqueFileName];
NSURL *fileURL = [NSURL fileURLWithPath:dataPath];
[self.sessionManager startRecordingToOutputFileURL:fileURL recordingDelegate:self];
[self.sessionManager startRecording:fileURL recordingDelegate:self];
} else {
CDVPluginResult *pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:@"Session not initialized or already recording"];
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
Expand Down

0 comments on commit bdd0d86

Please sign in to comment.