Commit adb19ee3 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

fix: video output

Taking picture will override video quality. This patch ensure video
quality before start capturing session.

Change-Id: I818ff8eb714bb6f25887d5e7d0fcbec202cd7801
parent 88142b5e
......@@ -111,6 +111,11 @@ class FrameExtractor: NSObject, AVCaptureVideoDataOutputSampleBufferDelegate {
func startCapturing() {
sessionQueue.async { [unowned self] in
if self.captureSession.canSetSessionPreset(self.quality) {
self.captureSession.sessionPreset = self.quality
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment