Class: RemoteStageStream
A RemoteStageStream is a wrapper for media coming from remote participants. It gives you the ability to perform various actions like mute and unmute participants.
Extends
TypedEmitter
\<RemoteStageStreamEventMap
>
Implements
StageStream
\<RemoteStageStreamEventMap
>
Accessors
id
get
id():string
Returns
string
Implementation of
isAdapting
get
isAdapting():boolean
Returns
boolean
isMuted
get
isMuted():boolean
set
isMuted(muted
):void
Parameters
• muted: boolean
Returns
boolean
Implementation of
mediaStreamTrack
get
mediaStreamTrack():MediaStreamTrack
Returns
MediaStreamTrack
Implementation of
StageStream
. mediaStreamTrack
participantInfo
get
participantInfo():StageParticipantInfo
Returns
streamType
get
streamType():StreamType
Returns
Implementation of
Methods
cleanup()
cleanup():
void
Cleans up the Stage Stream so no additional events will fire.
Returns
void
Implementation of
getHighestQualityLayer()
getHighestQualityLayer():
undefined
|StageStreamLayer
Returns
undefined
| StageStreamLayer
getLowestQualityLayer()
getLowestQualityLayer():
undefined
|StageStreamLayer
Returns
undefined
| StageStreamLayer
getStats()
getStats():
Promise
\<undefined
|RTCStatsReport
>
This API is the previous internal API and now just defers internally to the requestRTCStats.
Returns
Promise
\<undefined
| RTCStatsReport
>
Implementation of
Deprecated
off()
off\<
E
>(event
,callback
,context
?):void
De-register a callback for event E
Type Parameters
• E extends keyof RemoteStageStreamEventMap
Parameters
• event: E
the event to de-register the callback for
• callback: RemoteStageStreamEventMap
[E
]
the callback to be de-registered
• context?: any
Returns
void
Implementation of
Inherited from
TypedEmitter.off
on()
on\<
E
>(event
,callback
,context
?):void
Register a new callback for event E
Type Parameters
• E extends keyof RemoteStageStreamEventMap
Parameters
• event: E
the event to register the callback for
• callback: RemoteStageStreamEventMap
[E
]
the callback to be invoked for the event
• context?: any
Returns
void
Implementation of
Inherited from
TypedEmitter.on
requestRTCStats()
requestRTCStats():
Promise
\<undefined
|RTCStatsReport
>
Get the RTC Stats report for this media source
Returns
Promise
\<undefined
| RTCStatsReport
>
Implementation of
setGetStats()
setGetStats():
void
Returns
void
Implementation of
StageStream.setGetStats
setMuted()
setMuted(
mute
):void
Mute or unmute a participant remotely
Parameters
• mute: boolean
Mute or unmute
Returns
void