MTHKView
@MainActor
public class MTHKView : MTKView
extension MTHKView: IOStreamView
A view that displays a video content of a NetStream object which uses Metal api.
-
Specifies how the video is displayed within a player layer’s bounds.
Declaration
Swift
@MainActor public var videoGravity: AVLayerVideoGravity -
Specifies the orientation of AVCaptureVideoOrientation.
Declaration
Swift
@MainActor public var videoOrientation: AVCaptureVideoOrientation { get set } -
Specifies the capture video preview enabled or not.
Declaration
Swift
@available(tvOS 17.0, *) @MainActor public var isCaptureVideoPreviewEnabled: Bool { get set } -
Initializes and returns a newly allocated view object with the specified frame rectangle.
Declaration
Swift
@MainActor public init(frame: CGRect) -
Returns an object initialized from data in a given unarchiver.
Declaration
Swift
@MainActor public required init(coder aDecoder: NSCoder) -
Prepares the receiver for service after it has been loaded from an Interface Builder archive, or nib file.
Declaration
Swift
@MainActor override open func awakeFromNib() -
Undocumented
Declaration
Swift
@MainActor override open func draw(_ rect: CGRect)
-
Declaration
Swift
@MainActor public func attachStream(_ stream: IOStream?) -
Declaration
Swift
@MainActor public func enqueue(_ sampleBuffer: CMSampleBuffer?)