VIVideoStream
Interface that represents the video streams. It may be used to add or remove video renderers.
Methods
addRenderer:
fun addRenderer:(renderer: id<VIRTCVideoRenderer>
): void
Adds a new video renderer to the video stream. UI elements of VIRTCVideoRenderer type are used to display a local preview or a remote video.
Parameters
renderer:
id<VIRTCVideoRenderer>
New video renderer to be added
Returns
type:
void
removeAllRenderers
fun removeAllRenderers(): void
Removes all video renderers associated with the video stream.
Returns
type:
void
removeRenderer:
fun removeRenderer:(renderer: id<VIRTCVideoRenderer>
): void
Removes the previously added video renderer from the video stream. UI elements of VIRTCVideoRenderer type are used to display a local preview or a remote video.
Parameters
renderer:
id<VIRTCVideoRenderer>
Previously added video renderer
Returns
type:
void
Props
renderers
val renderers: NSSet<id<VIRTCVideoRenderer>> *
Video renderers associated with the stream. UI elements of the VIRTCVideoRenderer type are used to display a local preview or a remote video.
Returns
type:
NSSet<id<VIRTCVideoRenderer>> *
streamId
val streamId: NSString *
Video stream ID.
Returns
type:
NSString *