mirror of
https://github.com/HaishinKit/HaishinKit.swift.git
synced 2026-06-06 20:17:36 +00:00
26 lines
567 B
Swift
26 lines
567 B
Swift
#if os(iOS)
|
|
|
|
import AVFoundation
|
|
import Foundation
|
|
|
|
extension NetStream {
|
|
public var orientation: AVCaptureVideoOrientation {
|
|
get {
|
|
mixer.videoIO.orientation
|
|
}
|
|
set {
|
|
self.mixer.videoIO.orientation = newValue
|
|
}
|
|
}
|
|
|
|
public var zoomFactor: CGFloat {
|
|
self.mixer.videoIO.zoomFactor
|
|
}
|
|
|
|
public func setZoomFactor(_ zoomFactor: CGFloat, ramping: Bool = false, withRate: Float = 2.0) {
|
|
self.mixer.videoIO.setZoomFactor(zoomFactor, ramping: ramping, withRate: withRate)
|
|
}
|
|
}
|
|
|
|
#endif
|