2021-02-19 08:28:05 -07:00
|
|
|
//
|
|
|
|
// AVCapturePhotoOutput+mirror.swift
|
|
|
|
// Cuvent
|
|
|
|
//
|
|
|
|
// Created by Marc Rousavy on 18.01.21.
|
2021-06-01 05:07:57 -06:00
|
|
|
// Copyright © 2021 mrousavy. All rights reserved.
|
2021-02-19 08:28:05 -07:00
|
|
|
//
|
|
|
|
|
|
|
|
import AVFoundation
|
|
|
|
|
|
|
|
extension AVCapturePhotoOutput {
|
2021-03-09 02:53:29 -07:00
|
|
|
func mirror() {
|
|
|
|
connections.forEach { connection in
|
|
|
|
if connection.isVideoMirroringSupported {
|
2021-06-11 13:06:19 -06:00
|
|
|
connection.automaticallyAdjustsVideoMirroring = false
|
2021-03-09 02:53:29 -07:00
|
|
|
connection.isVideoMirrored = true
|
|
|
|
}
|
2021-02-19 08:28:05 -07:00
|
|
|
}
|
2021-03-09 02:53:29 -07:00
|
|
|
}
|
2021-02-19 08:28:05 -07:00
|
|
|
}
|