Skip to content
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.

Commit

Permalink
fix(cache): store video recordings in same directory as photos
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignigena committed Apr 26, 2018
1 parent b1721b8 commit bba84a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RN/RNCamera.m
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ - (void)record:(NSDictionary *)options resolve:(RCTPromiseResolveBlock)resolve r

dispatch_async(self.sessionQueue, ^{
[self updateFlashMode];
NSString *path = [RNFileSystem generatePathInDirectory:[[RNFileSystem cacheDirectoryPath] stringByAppendingString:@"Camera"] withExtension:@".mov"];
NSString *path = [RNFileSystem generatePathInDirectory:[[RNFileSystem cacheDirectoryPath] stringByAppendingPathComponent:@"Camera"] withExtension:@".mov"];
NSURL *outputURL = [[NSURL alloc] initFileURLWithPath:path];
[self.movieFileOutput startRecordingToOutputFileURL:outputURL recordingDelegate:self];
self.videoRecordedResolve = resolve;
Expand Down

0 comments on commit bba84a9

Please sign in to comment.