SIGN UP

StreamManager

Interface for extended management of local audio/video streams.

Methods

get

get(): StreamManager

Get the StreamManager instance

Returns

getLocalMediaRenderers

getLocalMediaRenderers(): MediaRenderer[]

List of currently used containers for local audio and video streams.

Returns

hideLocalVideo

hideLocalVideo(): Promise<void>

Turn off local video. Use the showLocalVideo method to turn on local video.

Returns

  • Return:

    Promise<void>

off

off(event: HardwareEvents, handler: Function): void

Alias to standard .removeEventListener method.

Parameters

Returns

  • Return:

    void

on

on(event: HardwareEvents, handler: Function): void

Alias to standard .addEventListener method.

Parameters

Returns

  • Return:

    void

showLocalVideo

showLocalVideo(): Promise<MediaRenderer>

Turn on local video. The container for local video elements must be specified via in the Config.localVideoContainerId field in the Client.init config. If it's not specified, local videos will be appended to end of the element.
Use the hideLocalVideo method to turn off local video.

Returns