MTHKView
public class MTHKView : MTKView
extension MTHKView: NetStreamDrawable
extension MTHKView: MTKViewDelegate
A view that displays a video content of a NetStream object which uses Metal api.
-
Undocumented
Declaration
Swift
public var isMirrored: Bool -
Specifies how the video is displayed within a player layer’s bounds.
Declaration
Swift
public var videoGravity: AVLayerVideoGravity -
Declaration
Swift
public var videoFormatDescription: CMVideoFormatDescription? { get } -
Declaration
Swift
public var position: AVCaptureDevice.Position -
Declaration
Swift
public var orientation: AVCaptureVideoOrientation -
Initializes and returns a newly allocated view object with the specified frame rectangle.
Declaration
Swift
public init(frame: CGRect) -
Returns an object initialized from data in a given unarchiver.
Declaration
Swift
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
override open func awakeFromNib()
-
Declaration
Swift
public func attachStream(_ stream: NetStream?) -
Declaration
Swift
public func enqueue(_ sampleBuffer: CMSampleBuffer?)
-
Undocumented
Declaration
Swift
public func mtkView(_ view: MTKView, drawableSizeWillChange size: CGSize) -
Undocumented
Declaration
Swift
public func draw(in view: MTKView)
MTHKView Class Reference