Rate this page:

StreamManager

Interface for extended management of local audio/video streams.

Methods

get

Copy URL
get(): 

StreamManager

Gets the StreamManager instance

Returns

getLocalMediaRenderers

Copy URL
getLocalMediaRenderers(): 

MediaRenderer[]

Lists the currently used containers for local audio and video streams.

Returns

hideLocalVideo

Copy URL
hideLocalVideo(): 

Promise<void>

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

Returns

  • type:

    Promise<void>

off

Copy URL
off(event: 

HardwareEvents

,
handler:

Function

):

void

Remove a handler for the specified event. The method is a shorter equivalent for removeEventListener. If a number of events has the same function as a handler, the method can be called multiple times with the same handler argument.

Parameters

Returns

  • type:

    void

on

Copy URL
on(event: 

HardwareEvents

,
handler:

Function

,
options:

EventListenerOption

):

void

Register a handler for the specified event. The method is a shorter equivalent for addEventListener. One event can have more than one handler; handlers are executed in order of registration. Use the StreamManager.off method to delete a handler.

Parameters

  • handler:

    Function

  • options:

    EventListenerOption

    Optional

Returns

  • type:

    void

showLocalVideo

Copy URL
showLocalVideo(placeOnDom: 

boolean

):

Promise<MediaRenderer>

Turns on the local video. The container for the local video elements should be specified in the Config.localVideoContainerId field in the Client.init config. If not specified, local videos are appended to end of the element. Use the hideLocalVideo method to turn off local video.

Parameters

  • placeOnDom:

    boolean

    Defaults on:  true

Returns

updateStreamSettings

Copy URL
updateStreamSettings(call: 

Call

):

Promise<void>

Parameters

Returns

  • type:

    Promise<void>

Props

isLocalVideoRequested

Copy URL
isLocalVideoRequested: 

boolean