fix: Fix torch not being reset after video recording (#2209)

This commit is contained in:
Marc Rousavy
2023-11-23 22:19:44 +01:00
committed by GitHub
parent 717a3534bc
commit bb3a42e6bc
3 changed files with 13 additions and 8 deletions

View File

@@ -22,13 +22,6 @@ extension CameraSession {
let start = DispatchTime.now()
ReactLogger.log(level: .info, message: "Starting Video recording...")
if options.flash != .off {
// use the torch as the video's flash
self.configure { config in
config.torch = options.flash
}
}
// Get Video Output
guard let videoOutput = self.videoOutput else {
if self.configuration?.video == .disabled {