Skip to content

Commit

Permalink
fix(ios): only mute recording if mute property is set to false (react…
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ru4l authored Nov 19, 2018
1 parent 32ad40c commit 776725e
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 @@ -522,7 +522,7 @@ - (void)record:(NSDictionary *)options resolve:(RCTPromiseResolveBlock)resolve r
}
}

[self updateSessionAudioIsMuted:!!options[@"mute"]];
[self updateSessionAudioIsMuted:[options[@"mute"] boolValue]];

AVCaptureConnection *connection = [self.movieFileOutput connectionWithMediaType:AVMediaTypeVideo];
if (self.videoStabilizationMode != 0) {
Expand Down

0 comments on commit 776725e

Please sign in to comment.