SIGN UP

VIVideoStream

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

Methods

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

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

Parameters

  • renderer:

    id<RTCVideoRenderer>

    New video renderer to be added.

- (void)removeAllRenderers

Remove all video renderers associated with the video stream.

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

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

Parameters

  • renderer:

    id<RTCVideoRenderer>

    Previously added video renderer.

Properties

@property (nonatomic, strong, readonly) NSSet<id<RTCVideoRenderer>> *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) VIStreamStat *stat

Statistics for the video stream. Updated every 5 seconds.

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

The video stream id.