Skip to content

Commit

Permalink
Audio recording (flutter#11)
Browse files Browse the repository at this point in the history
Fixed audio recording bug on IOS.
  • Loading branch information
holykou authored and quentinleguennec committed May 9, 2018
1 parent e6ce178 commit 368a2bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/camera/ios/Classes/CameraPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,9 @@ - (BOOL)setupWriterForPath:(NSString *)path {
} else {
return NO;
}
if (!_isAudioSetup) {
[self setUpCaptureSessionForAudio];
}
_videoWriter =
[[AVAssetWriter alloc] initWithURL:outputURL fileType:AVFileTypeQuickTimeMovie error:&error];
NSParameterAssert(_videoWriter);
Expand Down

0 comments on commit 368a2bf

Please sign in to comment.