StreamView

@objcMembers
@objc(GSStreamView)
open class StreamView : GLKView

View that displays a video stream.

  • Stream scale type.

    See more

    Declaration

    Swift

    public enum ScaleType : Int, CustomStringConvertible
  • Padding fill mode when scale type is ‘ScaleType.fit’.

    See more

    Declaration

    Swift

    public enum PaddingFill : Int, CustomStringConvertible
  • Listener that will be called when content zone changed. Parameter zone of the listener represents the new contentZone.

    Declaration

    Swift

    public var contentZoneListener: ((CGRect) -> Void)?
  • Content drawing zone; coordinates are relative to the view.

    Declaration

    Swift

    public private(set) var contentZone: CGRect { get set }
  • Rendering scale type.

    Declaration

    Swift

    public var renderingScaleType: StreamView.ScaleType { get set }
  • Rendering padding fill mode.

    Declaration

    Swift

    public var renderingPaddingFill: StreamView.PaddingFill { get set }
  • Enabling of zebras of overexposure image zones. ‘true’ to enable the zebras of overexposure zone.

    Declaration

    Swift

    public var zebrasEnabled: Bool { get set }
  • Threshold of overexposure used by zebras, in range [0.0, 1.0]. ‘0.0’ for the maximum of zebras and ‘1.0’ for the minimum.

    Default value is 0,94.

    Declaration

    Swift

    public var zebrasThreshold: Double { get set }
  • Enabling of histograms computing. ‘true’ to enable the histograms computing.

    Histograms will be received by the call of renderOverlay(OverlayerData).

    Declaration

    Swift

    public var histogramsEnabled: Bool { get set }
  • Rendering overlayer.

    Declaration

    Swift

    public weak var overlayer: Overlayer? { get set }
  • Rendering texture loader.

    Declaration

    Swift

    public weak var textureLoader: TextureLoader? { get set }
  • Constructor.

    Declaration

    Swift

    public override init(frame: CGRect)

    Parameters

    frame

    view frame

  • Undocumented

    Declaration

    Swift

    required public init?(coder aDecoder: NSCoder)
  • Draws a frame.

    Declaration

    Swift

    override open func draw(_ rect: CGRect)

    Parameters

    rect

    portion of the view’s bounds that needs to be updated

  • Attaches stream to be rendered. Client is responsible to detach any stream before the the view is disposed, otherwise, leak may occur.

    Declaration

    Swift

    public func setStream(stream: Stream?)

    Parameters

    stream

    stream to render, ‘nil’ to detach stream.