Class: LocalStageStream
A local media stream in a stage
Hierarchy
StageStream
<LocalStageStreamEventMap
>↳
LocalStageStream
Constructors
constructor
• new LocalStageStream(track
, config?
)
Creates an instance of a LocalStageStream
Parameters
Name | Type | Description |
---|---|---|
track | MediaStreamTrack | The MediaStreamTrack that this LocalStageStream wraps |
config? | StageVideoConfiguration | - |
Overrides
Properties
id
• id: string
Inherited from
isMuted
• isMuted: boolean
Inherited from
mediaConfig
• Optional
mediaConfig: StageVideoConfiguration
mediaStreamTrack
• mediaStreamTrack: MediaStreamTrack
Inherited from
streamType
• streamType: StreamType
Inherited from
Methods
cleanup
▸ cleanup(): void
Returns
void
Inherited from
emit
▸ emit<E
>(event
, ...args
): void
Emit args for event E
Type parameters
Name | Type |
---|---|
E | extends LOCAL_STREAM_MUTE_CHANGED |
Parameters
Name | Type | Description |
---|---|---|
event | E | the event name |
...args | Parameters <LocalStageStreamEventMap [E ]> | - |
Returns
void
Inherited from
off
▸ off<E
>(event
, callback
): void
De-register a callback for event E
Type parameters
Name | Type |
---|---|
E | extends LOCAL_STREAM_MUTE_CHANGED |
Parameters
Name | Type | Description |
---|---|---|
event | E | the event to de-register the callback for |
callback | LocalStageStreamEventMap [E ] | the callback to be de-registered |
Returns
void
Inherited from
on
▸ on<E
>(event
, callback
): void
Register a new callback for event E
Type parameters
Name | Type |
---|---|
E | extends LOCAL_STREAM_MUTE_CHANGED |
Parameters
Name | Type | Description |
---|---|---|
event | E | the event to register the callback for |
callback | LocalStageStreamEventMap [E ] | the callback to be invoked for the event |
Returns
void
Inherited from
removeAllListeners
▸ removeAllListeners(): void
Remove all event listeners
Returns
void
Inherited from
StageStream.removeAllListeners
requestRTCStats
▸ requestRTCStats(): Promise
<undefined
| RTCStatsReport
>
Get the RTC Stats report for this media source
Returns
Promise
<undefined
| RTCStatsReport
>
Inherited from
setGetStats
▸ setGetStats(getStats
): void
Parameters
Name | Type |
---|---|
getStats | GetStatsFunction |
Returns
void
Inherited from
setMuted
▸ setMuted(mute
): void
Updates the mute state of this LocalStageStream
Parameters
Name | Type | Description |
---|---|---|
mute | boolean | The desired mute state of this LocalStageStream |
Returns
void