mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 09:48:17 +00:00
More accurate log (#289)
Move capturing audio log when it's actually capturing
This commit is contained in:
parent
569da0c31a
commit
bff819c574
@ -239,9 +239,9 @@ RCT_CUSTOM_VIEW_PROPERTY(barCodeTypes, NSArray, RCTCamera) {
|
||||
}
|
||||
|
||||
RCT_CUSTOM_VIEW_PROPERTY(captureAudio, BOOL, RCTCamera) {
|
||||
RCTLog(@"capturing audio");
|
||||
BOOL captureAudio = [RCTConvert BOOL:json];
|
||||
if (captureAudio) {
|
||||
RCTLog(@"capturing audio");
|
||||
[self initializeCaptureSessionInput:AVMediaTypeAudio];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user