Skip to content

Commit 0635db4

Browse files
Fix bug when enableAudio is False and video recording is requested
1 parent a3f09e5 commit 0635db4

File tree

1 file changed

+1
-1
lines changed
  • packages/camera/camera_avfoundation/ios/camera_avfoundation/Sources/camera_avfoundation

1 file changed

+1
-1
lines changed

packages/camera/camera_avfoundation/ios/camera_avfoundation/Sources/camera_avfoundation/DefaultCamera.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ final class DefaultCamera: FLTCam, Camera {
9494

9595
func setUpCaptureSessionForAudioIfNeeded() {
9696
// Don't setup audio twice or we will lose the audio.
97-
guard !mediaSettings.enableAudio || !isAudioSetup else { return }
97+
guard mediaSettings.enableAudio && !isAudioSetup else { return }
9898

9999
let audioDevice = audioCaptureDeviceFactory()
100100
do {

0 commit comments

Comments
 (0)