Skip to navigation

VIVideoStream

VoximplantCalls · iOS SDK v3

View as Markdown

Protocol that all video streams should conform to.

@objc protocol VIVideoStream

Properties

id

var id: String { get }

Video stream id.

renderers

var renderers: [VIVideoRenderer] { get }

Array of video renderers that are currently rendering the video stream.

size

var size: CGSize { get }

Width and height of the video stream.

type

var type: VIVideoStreamType { get }

Video stream type.

Methods

addRenderer(_:completion:)

func addRenderer(_ renderer: VIVideoRenderer, completion: @escaping (VIVideoSourceError?) -> Void)

Adds a new video renderer to the video stream.

Parameters

renderer VIVideoRenderer

Video renderer. Must be the instance of VIVideoRendererUIView.

completion @escaping (VIVideoSourceError?) -> Void

Completion handler to call when the operation is complete. This handler is executed on the main queue. The SDK passes the VIVideoSourceError object if the operation has failed.

removeAllRenderers()

func removeAllRenderers()

Removes all video renderers associated with the video stream.

removeRenderer(_:)

func removeRenderer(_ renderer: VIVideoRenderer)

Removes the previously added video renderer from the video stream.

Parameters

renderer VIVideoRenderer

Video renderer

Relationships

Conforming Types: VILocalVideoStream, VIRemoteVideoStream