MTHKView

open class MTHKView : MTKView, NetStreamRenderer
extension MTHKView: MTKViewDelegate

A view that displays a video content of a NetStream object which uses Metal api.

  • Undocumented

    Declaration

    Swift

    open var isMirrored: Bool
  • A value that specifies how the video is displayed within a player layer’s bounds.

    Declaration

    Swift

    open var videoGravity: AVLayerVideoGravity
  • A value that displays a video format.

    Declaration

    Swift

    open var videoFormatDescription: CMVideoFormatDescription? { get }
  • Undocumented

    Declaration

    Swift

    public init(frame: CGRect)
  • Undocumented

    Declaration

    Swift

    public required init(coder aDecoder: NSCoder)
  • Undocumented

    Declaration

    Swift

    override open func awakeFromNib()
  • Attaches a view to a new NetStream object.

    Declaration

    Swift

    open func attachStream(_ stream: NetStream?)

MTKViewDelegate

  • Undocumented

    Declaration

    Swift

    public func mtkView(_ view: MTKView, drawableSizeWillChange size: CGSize)
  • Undocumented

    Declaration

    Swift

    public func draw(in view: MTKView)