Merge pull request #1519 from photomadic/fix/consistent-cache-directory

fix(cache): store video recordings in same directory as photos
This commit is contained in:
João Guilherme Fidelis 2018-04-26 10:33:20 -03:00 committed by GitHub
commit 7653092892
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -428,7 +428,7 @@ static NSDictionary *defaultFaceDetectorOptions = nil;
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;