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

Commit

Permalink
fix: issue #1246 - torch will be disabled when starting the record
Browse files Browse the repository at this point in the history
  • Loading branch information
Malte Peters committed Mar 23, 2018
1 parent 09f808e commit 8c69601
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ios/RN/RNCamera.m
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,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"];
NSURL *outputURL = [[NSURL alloc] initFileURLWithPath:path];
[self.movieFileOutput startRecordingToOutputFileURL:outputURL recordingDelegate:self];
Expand Down

0 comments on commit 8c69601

Please sign in to comment.