Skip to content

Commit 1f78d3f

Browse files
Redo pr deleted by mistake (flutter#12)
Fix a bug with video recording sound in IOS
1 parent 60c4854 commit 1f78d3f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/camera/ios/Classes/CameraPlugin.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,9 @@ - (BOOL)setupWriterForPath:(NSString *)path {
325325
} else {
326326
return NO;
327327
}
328+
if (!_isAudioSetup) {
329+
[self setUpCaptureSessionForAudio];
330+
}
328331
_videoWriter =
329332
[[AVAssetWriter alloc] initWithURL:outputURL fileType:AVFileTypeQuickTimeMovie error:&error];
330333
NSParameterAssert(_videoWriter);

0 commit comments

Comments
 (0)