Rate this page:

IVideoStream

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

Methods

AddRenderer

Copy URL

void

AddRenderer(

RawImage

target
)

Add a new video renderer to video stream.

Parameters

  • target:

    RawImage

    Target to apply the video stream texture and shader.

Returns

  • type:

    void

AddRenderer

Copy URL

void

AddRenderer(

Material

target
)

Add a new video renderer to video stream.

Parameters

  • target:

    Material

    Target to apply the video stream texture and shader.

Returns

  • type:

    void

RemoveRenderer

Copy URL

void

RemoveRenderer(

UnityEngine.Object

target
)

Remove a previously added video renderer.

Parameters

  • target:

    UnityEngine.Object

    <see cref="!:RawImage"></see> or <see cref="!:Material"></see>

Returns

  • type:

    void

Props

Height

Copy URL

int

Height { get; }

Video frame height.

Returns

  • type:

    int

Rotation

Copy URL

int

Rotation { get; }

Video frame rotation.

Returns

  • type:

    int

StreamId

Copy URL

string

StreamId { get; }

The identifier for the video stream.

Returns

  • type:

    string

Width

Copy URL

int

Width { get; }

Video frame width.

Returns

  • type:

    int