mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-08-21 21:37:23 +02:00
Update Ghostgram features
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import SGSimpleSettings
|
||||
|
||||
import Foundation
|
||||
import AVFoundation
|
||||
import UIKit
|
||||
@@ -367,6 +369,10 @@ final class CameraOutput: NSObject {
|
||||
AVVideoWidthKey: Int(dimensions.width),
|
||||
AVVideoHeightKey: Int(dimensions.height)
|
||||
]
|
||||
// MARK: Swiftgram
|
||||
if SGSimpleSettings.shared.startTelescopeWithRearCam {
|
||||
self.currentPosition = .back
|
||||
}
|
||||
} else {
|
||||
let codecType: AVVideoCodecType = hasHEVCHardwareEncoder ? .hevc : .h264
|
||||
if orientation == .landscapeLeft || orientation == .landscapeRight {
|
||||
|
||||
Reference in New Issue
Block a user