RemoteStageStream
A RemoteStageStream is a wrapper for media coming from remote participants. It's obtained from the StageEvents.STAGE_PARTICIPANT_STREAMS_ADDED event and contains APIs for manipulating the quality and state of the media playback.
The RemoteStageStream
emits RemoteStageStreamEvents which can be listened to
by calling stream.on(event, callback)
or stream.off(event, callback)
. The callback
types are defined in the RemoteStageStreamEventMap.
Extends
TypedEmitter
<RemoteStageStreamEventMap
>
Implements
Accessors
id
Get Signature
get id():
string
Returns the MediaTrack Id for the track associated with the stream.
Returns
string
Implementation of
isAdapting
Get Signature
get isAdapting():
boolean
Returns whether or not the server is dynamically adapting layers based on the
network conditions of the device (true
), or a manual layer has been chosen
by the application (false
).
Use this value in conjunction with the RemoteStageStream.getSelectedLayer to determine whether the selected layer is associated with Dynamic Simulcast or have been manually selected.
For example:
- isAdapting === true --> getSelectedLayer is server selected layer
- isAdapting === false --> getSelectedLayer is app selected layer
Returns
boolean
isMuted
Get Signature
get isMuted():
boolean
Returns whether the audio or video stream is muted or not. A muted audio stream is one that does not send audio samples (silent), and a muted video stream is one that does not send video frames (frozen).
Returns
boolean
Implementation of
mediaStreamTrack
Get Signature
get mediaStreamTrack():
MediaStreamTrack
Returns the MediaStreamTrack associated with the stream.
Returns
MediaStreamTrack
Implementation of
participantInfo
Get Signature
get participantInfo():
StageParticipantInfo
Returns the StageParticipantInfo associated with this stream.
Returns
streamType
Get Signature
get streamType():
StreamType
Returns the stream type associated with the stream.