/ fm / liveswitch / PluginMediaStream
Class: PluginMediaStream<TTrack>
fm.liveswitch.PluginMediaStream
Type parameters
Name | Type |
---|---|
TTrack |
PluginMediaTrack |
Hierarchy
-
↳ PluginMediaStream
Implements
Table of contents
Constructors
Methods
- addOnDirectionChange
- addOnDiscardBitrateNotification
- addOnDiscardBitrateRequest
- addOnLocalEncodingDisabled
- addOnLocalEncodingEnabled
- addOnStateChange
- changeDirection
- getCachedLocalDirection
- getCodecDisabled
- getControlTransportInfo
- getDirection
- getDynamicProperties
- getDynamicValue
- getExternalId
- getHandle
- getId
- getInfo
- getInputMuted
- getLabel
- getLocalBandwidth
- getLocalCanonicalName
- getLocalDirection
- getLocalMuted
- getLocalReceive
- getLocalSend
- getLocalTrack
- getMaxReceiveBitrate
- getMaxSendBitrate
- getMediaDescriptionId
- getOutputMuted
- getPreferredCodecs
- getRemoteBandwidth
- getRemoteCanonicalName
- getRemoteDirection
- getRemoteEncoding
- getRemoteMuted
- getRemoteReceive
- getRemoteRequestedDeactivation
- getRemoteSend
- getRemoteTrack
- getSimulcastMode
- getState
- getTag
- getTransportInfo
- getType
- getTypeString
- raiseBitrateNotification
- raiseBitrateRequest
- removeOnDirectionChange
- removeOnDiscardBitrateNotification
- removeOnDiscardBitrateRequest
- removeOnLocalEncodingDisabled
- removeOnLocalEncodingEnabled
- removeOnStateChange
- setCodecDisabled
- setDynamicValue
- setExternalId
- setInputMuted
- setLocalBandwidth
- setLocalDirection
- setLocalMuted
- setLocalReceive
- setLocalSend
- setMaxReceiveBitrate
- setMaxSendBitrate
- setOutputMuted
- setPreferredCodecs
- setRemoteEncoding
- setRemoteMuted
- setSimulcastMode
- setTag
- unsetDynamicValue
Constructors
constructor
+ new PluginMediaStream<TTrack>(localTrack
: TTrack, remoteTrack
: TTrack): PluginMediaStream<TTrack>
Type parameters:
Name | Type |
---|---|
TTrack |
PluginMediaTrack<TTrack> |
Parameters:
Name | Type |
---|---|
localTrack |
TTrack |
remoteTrack |
TTrack |
Returns: PluginMediaStream<TTrack>
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:73
Methods
addOnDirectionChange
▸ Abstract
addOnDirectionChange(value
: IAction0): void
Parameters:
Name | Type |
---|---|
value |
IAction0 |
Returns: void
Implementation of: IInternalMediaStream
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginStream.ts:24
addOnDiscardBitrateNotification
▸ Abstract
addOnDiscardBitrateNotification(value
: IAction1<BitrateNotification>): void
Parameters:
Name | Type |
---|---|
value |
IAction1<BitrateNotification> |
Returns: void
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:61
addOnDiscardBitrateRequest
▸ Abstract
addOnDiscardBitrateRequest(value
: IAction1<BitrateRequest>): void
Parameters:
Name | Type |
---|---|
value |
IAction1<BitrateRequest> |
Returns: void
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:57
addOnLocalEncodingDisabled
▸ Abstract
addOnLocalEncodingDisabled(value
: IAction1<EncodingInfo>): void
Parameters:
Name | Type |
---|---|
value |
IAction1<EncodingInfo> |
Returns: void
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:51
addOnLocalEncodingEnabled
▸ Abstract
addOnLocalEncodingEnabled(value
: IAction1<EncodingInfo>): void
Parameters:
Name | Type |
---|---|
value |
IAction1<EncodingInfo> |
Returns: void
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:52
addOnStateChange
▸ Abstract
addOnStateChange(value
: IAction0): void
Parameters:
Name | Type |
---|---|
value |
IAction0 |
Returns: void
Implementation of: IInternalMediaStream
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginStream.ts:12
changeDirection
▸ Abstract
changeDirection(newDirection
: StreamDirection): Error
Parameters:
Name | Type |
---|---|
newDirection |
StreamDirection |
Returns: Error
Implementation of: IInternalMediaStream
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginStream.ts:26
getCachedLocalDirection
▸ Abstract
getCachedLocalDirection(): StreamDirection
Returns: StreamDirection
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:42
getCodecDisabled
▸ Abstract
getCodecDisabled(name
: string): boolean
Parameters:
Name | Type |
---|---|
name |
string |
Returns: boolean
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:33
getControlTransportInfo
▸ Abstract
getControlTransportInfo(): TransportInfo
Returns: TransportInfo
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:49
getDirection
▸ Abstract
getDirection(): StreamDirection
Returns: StreamDirection
Implementation of: IInternalMediaStream
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginStream.ts:27
getDynamicProperties
▸ getDynamicProperties(): Hash<string, Object>
Gets all dynamic properties on this instance.
Returns: Hash<string, Object>
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/Dynamic.ts:37
getDynamicValue
▸ getDynamicValue(key
: string): Object
Gets a property value from the local cache.
Parameters:
Name | Type | Description |
---|---|---|
key |
string | The property key. This key is used internally only, but should be namespaced to avoid conflict with third-party extensions. |
Returns: Object
The stored value, if found; otherwise null.
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/Dynamic.ts:58
getExternalId
▸ Abstract
getExternalId(): string
Returns: string
Implementation of: IInternalMediaStream
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginStream.ts:29
getHandle
▸ Abstract
getHandle(): number
Returns: number
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginStream.ts:23
getId
▸ Abstract
getId(): string
Returns: string
Implementation of: IInternalMediaStream
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginStream.ts:28
getInfo
▸ Abstract
getInfo(): MediaStreamInfo
Returns: MediaStreamInfo
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:48
getInputMuted
▸ Abstract
getInputMuted(): boolean
Returns: boolean
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:25
getLabel
▸ Abstract
getLabel(): string
Returns: string
Implementation of: IInternalMediaStream
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginStream.ts:31
getLocalBandwidth
▸ Abstract
getLocalBandwidth(): number
Returns: number
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:23
getLocalCanonicalName
▸ Abstract
getLocalCanonicalName(): string
Returns: string
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:45
getLocalDirection
▸ Abstract
getLocalDirection(): StreamDirection
Returns: StreamDirection
Implementation of: IInternalMediaStream
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginStream.ts:32
getLocalMuted
▸ Abstract
getLocalMuted(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:72
getLocalReceive
▸ Abstract
getLocalReceive(): boolean
Returns: boolean
Implementation of: IInternalMediaStream
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginStream.ts:15
getLocalSend
▸ Abstract
getLocalSend(): boolean
Returns: boolean
Implementation of: IInternalMediaStream
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginStream.ts:17
getLocalTrack
▸ getLocalTrack(): TTrack
Returns: TTrack
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:13
getMaxReceiveBitrate
▸ Abstract
getMaxReceiveBitrate(): number
Returns: number
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:67
getMaxSendBitrate
▸ Abstract
getMaxSendBitrate(): number
Returns: number
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:65
getMediaDescriptionId
▸ Abstract
getMediaDescriptionId(): string
Returns: string
Implementation of: IInternalMediaStream
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginStream.ts:33
getOutputMuted
▸ Abstract
getOutputMuted(): boolean
Returns: boolean
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:26
getPreferredCodecs
▸ Abstract
getPreferredCodecs(): string[]
Returns: string[]
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:31
getRemoteBandwidth
▸ Abstract
getRemoteBandwidth(): number
Returns: number
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:27
getRemoteCanonicalName
▸ Abstract
getRemoteCanonicalName(): string
Returns: string
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:46
getRemoteDirection
▸ Abstract
getRemoteDirection(): StreamDirection
Returns: StreamDirection
Implementation of: IInternalMediaStream
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginStream.ts:21
getRemoteEncoding
▸ Abstract
getRemoteEncoding(): EncodingInfo
Returns: EncodingInfo
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:36
getRemoteMuted
▸ Abstract
getRemoteMuted(): boolean
Returns: boolean
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:70
getRemoteReceive
▸ Abstract
getRemoteReceive(): boolean
Returns: boolean
Implementation of: IInternalMediaStream
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginStream.ts:20
getRemoteRequestedDeactivation
▸ Abstract
getRemoteRequestedDeactivation(): boolean
Returns: boolean
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:43
getRemoteSend
▸ Abstract
getRemoteSend(): boolean
Returns: boolean
Implementation of: IInternalMediaStream
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginStream.ts:19
getRemoteTrack
▸ getRemoteTrack(): TTrack
Returns: TTrack
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:19
getSimulcastMode
▸ Abstract
getSimulcastMode(): SimulcastMode
Returns: SimulcastMode
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:39
getState
▸ Abstract
getState(): StreamState
Returns: StreamState
Implementation of: IInternalMediaStream
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginStream.ts:11
getTag
▸ Abstract
getTag(): string
Returns: string
Implementation of: IInternalMediaStream
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginStream.ts:34
getTransportInfo
▸ Abstract
getTransportInfo(): TransportInfo
Returns: TransportInfo
Implementation of: IInternalMediaStream
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginStream.ts:38
getType
▸ Abstract
getType(): StreamType
Returns: StreamType
Implementation of: IInternalMediaStream
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginStream.ts:35
getTypeString
▸ getTypeString(): string
Returns: string
Overrides: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:4
raiseBitrateNotification
▸ Abstract
raiseBitrateNotification(bitrateNotification
: BitrateNotification): boolean
Parameters:
Name | Type |
---|---|
bitrateNotification |
BitrateNotification |
Returns: boolean
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:63
raiseBitrateRequest
▸ Abstract
raiseBitrateRequest(bitrateRequest
: BitrateRequest): boolean
Parameters:
Name | Type |
---|---|
bitrateRequest |
BitrateRequest |
Returns: boolean
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:59
removeOnDirectionChange
▸ Abstract
removeOnDirectionChange(value
: IAction0): void
Parameters:
Name | Type |
---|---|
value |
IAction0 |
Returns: void
Implementation of: IInternalMediaStream
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginStream.ts:25
removeOnDiscardBitrateNotification
▸ Abstract
removeOnDiscardBitrateNotification(value
: IAction1<BitrateNotification>): void
Parameters:
Name | Type |
---|---|
value |
IAction1<BitrateNotification> |
Returns: void
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:62
removeOnDiscardBitrateRequest
▸ Abstract
removeOnDiscardBitrateRequest(value
: IAction1<BitrateRequest>): void
Parameters:
Name | Type |
---|---|
value |
IAction1<BitrateRequest> |
Returns: void
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:58
removeOnLocalEncodingDisabled
▸ Abstract
removeOnLocalEncodingDisabled(value
: IAction1<EncodingInfo>): void
Parameters:
Name | Type |
---|---|
value |
IAction1<EncodingInfo> |
Returns: void
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:54
removeOnLocalEncodingEnabled
▸ Abstract
removeOnLocalEncodingEnabled(value
: IAction1<EncodingInfo>): void
Parameters:
Name | Type |
---|---|
value |
IAction1<EncodingInfo> |
Returns: void
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:55
removeOnStateChange
▸ Abstract
removeOnStateChange(value
: IAction0): void
Parameters:
Name | Type |
---|---|
value |
IAction0 |
Returns: void
Implementation of: IInternalMediaStream
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginStream.ts:13
setCodecDisabled
▸ Abstract
setCodecDisabled(name
: string, disabled
: boolean): void
Parameters:
Name | Type |
---|---|
name |
string |
disabled |
boolean |
Returns: void
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:34
setDynamicValue
▸ setDynamicValue(key
: string, value
: Object): void
Sets a property value in the local cache.
Parameters:
Name | Type | Description |
---|---|---|
key |
string | The property key. This key is used internally only, but should be namespaced to avoid conflict with third-party extensions. |
value |
Object | The property value. This can be any object that needs to be stored for future use. |
Returns: void
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/Dynamic.ts:95
setExternalId
▸ Abstract
setExternalId(value
: string): void
Parameters:
Name | Type |
---|---|
value |
string |
Returns: void
Implementation of: IInternalMediaStream
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginStream.ts:30
setInputMuted
▸ Abstract
setInputMuted(muted
: boolean): void
Parameters:
Name | Type |
---|---|
muted |
boolean |
Returns: void
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:28
setLocalBandwidth
▸ Abstract
setLocalBandwidth(value
: number): void
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:24
setLocalDirection
▸ Abstract
setLocalDirection(value
: StreamDirection): void
Parameters:
Name | Type |
---|---|
value |
StreamDirection |
Returns: void
Implementation of: IInternalMediaStream
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginStream.ts:36
setLocalMuted
▸ Abstract
setLocalMuted(value
: boolean): void
Parameters:
Name | Type |
---|---|
value |
boolean |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:73
setLocalReceive
▸ Abstract
setLocalReceive(localReceiveEnabled
: boolean): void
Parameters:
Name | Type |
---|---|
localReceiveEnabled |
boolean |
Returns: void
Implementation of: IInternalMediaStream
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginStream.ts:16
setLocalSend
▸ Abstract
setLocalSend(localSendEnabled
: boolean): void
Parameters:
Name | Type |
---|---|
localSendEnabled |
boolean |
Returns: void
Implementation of: IInternalMediaStream
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginStream.ts:18
setMaxReceiveBitrate
▸ Abstract
setMaxReceiveBitrate(value
: number): void
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:68
setMaxSendBitrate
▸ Abstract
setMaxSendBitrate(value
: number): void
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:66
setOutputMuted
▸ Abstract
setOutputMuted(muted
: boolean): void
Parameters:
Name | Type |
---|---|
muted |
boolean |
Returns: void
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:29
setPreferredCodecs
▸ Abstract
setPreferredCodecs(names
: string[]): void
Parameters:
Name | Type |
---|---|
names |
string[] |
Returns: void
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:32
setRemoteEncoding
▸ Abstract
setRemoteEncoding(value
: EncodingInfo): void
Parameters:
Name | Type |
---|---|
value |
EncodingInfo |
Returns: void
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:37
setRemoteMuted
▸ Abstract
setRemoteMuted(value
: boolean): void
Parameters:
Name | Type |
---|---|
value |
boolean |
Returns: void
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:71
setSimulcastMode
▸ Abstract
setSimulcastMode(value
: SimulcastMode): void
Parameters:
Name | Type |
---|---|
value |
SimulcastMode |
Returns: void
Implementation of: IInternalMediaStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginMediaStream.ts:40
setTag
▸ Abstract
setTag(value
: string): void
Parameters:
Name | Type |
---|---|
value |
string |
Returns: void
Implementation of: IInternalMediaStream
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/PluginStream.ts:37
unsetDynamicValue
▸ unsetDynamicValue(key
: string): boolean
Removes a property value from the local cache. Returns true if the value was removed and returns false otherwise.
Parameters:
Name | Type | Description |
---|---|---|
key |
string | The property key. This key is used internally only, but should be namespaced to avoid conflict with third-party extensions. |
Returns: boolean
true
if the value was removed; otherwise, false
.
Inherited from: PluginStream
Defined in: Generated/TypeScript/fm.liveswitch/Dynamic.ts:122