LocalStageStream
A LocalStageStream is a wrapper for media coming from local participants. It gives you the ability to perform various actions like mute and unmute participants.
Extends
StageStream<LocalStageStreamEventMap>
Constructors
new LocalStageStream()
new LocalStageStream(
track,config?):LocalStageStream
Creates an instance of a LocalStageStream
Parameters
| Parameter | Type | Description |
|---|---|---|
track | MediaStreamTrack | The MediaStreamTrack that this LocalStageStream wraps |
config? | StageVideoConfiguration | StageAudioConfiguration | Optional video or audio configuration on the stage |
Returns
Overrides
Properties
id
id:
string
Inherited from
isMuted
isMuted:
boolean
Inherited from
mediaConfig
mediaConfig:
StageStreamConfiguration
mediaStreamTrack
mediaStreamTrack:
MediaStreamTrack
Inherited from
streamType
streamType:
StreamType
Inherited from
Methods
cleanup()
cleanup():
void
Prevents the getStats closure from preventing garbage collection for
Returns
void
Inherited from
getStats()
getStats():
Promise<undefined|RTCStatsReport>
This API is the previous internal API and now just defers internally to the requestRTCStats.
Returns
Promise<undefined | RTCStatsReport>
Deprecated
Inherited from
hasListenersFor()
hasListenersFor<
Event>(event):boolean
Returns a boolean indicating whether an event has actively registered listeners.
Type Parameters
| Type Parameter |
|---|
Event extends keyof LocalStageStreamEventMap |
Parameters
| Parameter | Type | Description |
|---|---|---|
event | Event | the event to register the callback for |
Returns
boolean