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(

UnityEngine.UI.RawImage

target
)

Add a new video renderer to video stream.

Parameters

  • target:

    UnityEngine.UI.RawImage

    Target to apply the video stream texture and shader.

Returns

  • type:

    void

AddRenderer

Copy URL

void

AddRenderer(

UnityEngine.Material

target
)

Add a new video renderer to video stream.

Parameters

  • target:

    UnityEngine.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

    UnityEngine.UI.RawImage or UnityEngine.Material

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