Rate this page:

VIVideoStream

Interface that represents the video streams. It may be used to add or remove video renderers.

Methods

addRenderer:

Copy URL
- (

void

)addRenderer:(

id<VIRTCVideoRenderer>

)renderer

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

Copy URL
- (

void

)removeAllRenderers

Removes all video renderers associated with the video stream.

Returns

  • type:

    void

removeRenderer:

Copy URL
- (

void

)removeRenderer:(

id<VIRTCVideoRenderer>

)renderer

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

Copy URL
@property (strong, readonly, nonatomic) 

NSSet<id<VIRTCVideoRenderer>> *

renderers

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

Copy URL
@property (readonly, nonatomic) 

NSString *

streamId

Video stream ID.

Returns

  • type:

    NSString *

type

Copy URL
@property (assign, readonly, nonatomic) 

VIVideoStreamType

type

Video stream type.

Returns