Rate this page:

RemoteStream

Interface that represents a remote audio, video, or screen sharing stream.

Methods

addEventListener

Copy URL
addEventListener(eventName: 

StreamEvent.Ended

,
listener:

(event: StreamEnded) => void | Promise<void>

,
options:

ListenerOptions

):

void

Registers a handler for the specified event.

One event can have more than one handler; handlers are executed in order of their registration.

Parameters

  • Event name

  • listener:

    (event: StreamEnded) => void | Promise<void>

    Handler function that is triggered when an event of the specified type occurs

  • Object that specifies characteristics about the event listener

Returns

  • type:

    void

removeEventListener

Copy URL
removeEventListener(eventName: 

StreamEvent.Ended

,
listener:

(event: StreamEnded) => void | Promise<void>

,
options:

ListenerOptions

):

void

Registers a handler for the specified event.

One event can have more than one handler; handlers are executed in order of their registration.

Parameters

  • Event name

  • listener:

    (event: StreamEnded) => void | Promise<void>

    Handler function that is triggered when an event of the specified type occurs

  • Object that specifies characteristics about the event listener

Returns

  • type:

    void

Props

id

Copy URL
id: 

string

Stream id.

isReceiving

Copy URL
isReceiving: 

Watchable<boolean>

Watchable property that allows getting and setting video receiving status and observe its changes.

For the remote streams in a conference, changes the value when one of the following events is triggered:

For remote stream in a call, it is always true.

source

Copy URL
source: 

"remote"

Stream source type (remote).

sourceStream

Copy URL
sourceStream: 

MediaStream

MediaStream object.

track

Copy URL
track: 

MediaStreamTrack

type

Copy URL
type: 

StreamType

Stream type.