mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 09:48:17 +00:00
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:
commit
7653092892
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user