Rate this page:

VIVideoStream

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

Methods

addRenderer:

Copy URL
- (

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.

Returns

  • type:

    void

removeAllRenderers

Copy URL
- (

void

)removeAllRenderers

Remove all video renderers associated with the video stream.

Returns

  • type:

    void

removeRenderer:

Copy URL
- (

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.

Returns

  • type:

    void

Props

renderers

Copy URL
@property (strong, readonly, nonatomic) 

NSSet<id<RTCVideoRenderer>> *

renderers

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

Returns

  • type:

    NSSet<id<RTCVideoRenderer>> *

streamId

Copy URL
@property (readonly, nonatomic) 

NSString *

streamId

The video stream id.

Returns

  • type:

    NSString *

type

Copy URL
@property (assign, readonly, nonatomic) 

VIVideoStreamType

type

The video stream type.

Returns