mirror of
https://github.com/HaishinKit/HaishinKit.swift.git
synced 2026-05-07 20:12:28 +00:00
16 lines
381 B
Swift
16 lines
381 B
Swift
import AVFoundation
|
|
import Foundation
|
|
|
|
@available(tvOS 17.0, *)
|
|
protocol DeviceUnit {
|
|
associatedtype Output: AVCaptureOutput
|
|
|
|
var track: UInt8 { get }
|
|
var input: AVCaptureInput? { get }
|
|
var output: Output? { get }
|
|
var device: AVCaptureDevice? { get }
|
|
var connection: AVCaptureConnection? { get }
|
|
|
|
init(_ track: UInt8, device: AVCaptureDevice) throws
|
|
}
|