Add iOS
This commit is contained in:
19
ios/Extensions/AVCapturePhotoOutput+mirror.swift
Normal file
19
ios/Extensions/AVCapturePhotoOutput+mirror.swift
Normal file
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// AVCapturePhotoOutput+mirror.swift
|
||||
// Cuvent
|
||||
//
|
||||
// Created by Marc Rousavy on 18.01.21.
|
||||
// Copyright © 2021 Facebook. All rights reserved.
|
||||
//
|
||||
|
||||
import AVFoundation
|
||||
|
||||
extension AVCapturePhotoOutput {
|
||||
func mirror() {
|
||||
connections.forEach { (connection) in
|
||||
if connection.isVideoMirroringSupported {
|
||||
connection.isVideoMirrored = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user