fix: Fix torch staying on after recording a video (#584)
This commit is contained in:
parent
1249cde337
commit
6319e5cc49
@ -72,6 +72,10 @@ extension CameraView: AVCaptureVideoDataOutputSampleBufferDelegate, AVCaptureAud
|
|||||||
self.deactivateAudioSession()
|
self.deactivateAudioSession()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if options["flash"] != nil {
|
||||||
|
// Set torch mode back to what it was before if we used it for the video flash.
|
||||||
|
self.setTorchMode(self.torch)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
self.isRecording = false
|
self.isRecording = false
|
||||||
|
Loading…
Reference in New Issue
Block a user