VIVideoStream

Interface representing local and remote video streams. It may be used to add or remove video renderers.

Members
renderers

Video renderers associated with the stream. UI elements of RTCVideoRenderer type are used to display local preview or remote video.

@property (nonatomic, strong, readonly) NSSet<id<RTCVideoRenderer> > *renderers
stat

Statistics for the video stream. Updated every 5 seconds.

@property (nonatomic, strong, readonly) VIStreamStat *stat
streamId

The video stream id.

@property (nonatomic, copy, readonly) NSString *streamId
–  init

Warning: NS_UNAVAILABLE

- (instancetype)init
–  addRenderer:

Add new video renderer to the video stream. UI elements of RTCVideoRenderer type are used to display local preview or remote video.

- (void)addRenderer:(id<RTCVideoRenderer>)renderer
Parameters
renderer

New video renderer to be added

–  removeRenderer:

Remove previously added video renderer from the video stream. UI elements of RTCVideoRenderer type are used to display local preview or remote video.

- (void)removeRenderer:(id<RTCVideoRenderer>)renderer
Parameters
renderer

Previously added video renderer

–  removeAllRenderers

Remove all video renderers associated with the video stream

- (void)removeAllRenderers