HKView

public class HKView : UIView
extension HKView: NetStreamDrawable

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

  • The view’s background color.

    Declaration

    Swift

    public static var defaultBackgroundColor: UIColor
  • Returns the class used to create the layer for instances of this class.

    Declaration

    Swift

    override public class var layerClass: AnyClass { get }
  • The view’s Core Animation layer used for rendering.

    Declaration

    Swift

    override public var layer: AVCaptureVideoPreviewLayer { get }
  • A value that specifies how the video is displayed within a player layer’s bounds.

    Declaration

    Swift

    public var videoGravity: AVLayerVideoGravity { get set }
  • A value that displays a video format.

    Declaration

    Swift

    public var videoFormatDescription: CMVideoFormatDescription? { get }
  • Declaration

    Swift

    public var orientation: AVCaptureVideoOrientation { get set }
  • Declaration

    Swift

    public var position: AVCaptureDevice.Position
  • Initializes and returns a newly allocated view object with the specified frame rectangle.

    Declaration

    Swift

    override 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 public func awakeFromNib()

NetStreamDrawable