/ fm / liveswitch / WebRtcMediaTrack
Class: WebRtcMediaTrack
fm.liveswitch.WebRtcMediaTrack
Hierarchy
-
↳ WebRtcMediaTrack
Implements
Table of contents
Constructors
Properties
Methods
- addOnDestroyed
- addOnMuted
- addOnStarted
- addOnStopped
- addOnUnmuted
- changeSinkOutput
- changeSourceInput
- destroy
- getDynamicProperties
- getDynamicValue
- getMedia
- getMediaConstraints
- getMuted
- getSinkOutput
- getSinkOutputs
- getSourceInput
- getSourceInputs
- getTypeString
- raiseOnMuted
- raiseOnStarted
- raiseOnStopped
- raiseOnUnmuted
- removeOnDestroyed
- removeOnMuted
- removeOnStarted
- removeOnStopped
- removeOnUnmuted
- setDynamicValue
- setMuted
- setSinkOutput
- setSourceInput
- stop
- unsetDynamicValue
Constructors
constructor
+ new WebRtcMediaTrack(external
: IExternalMediaTrack, media
: WebRtcMedia<WebRtcAudioTrack, WebRtcVideoTrack>): WebRtcMediaTrack
Parameters:
Name | Type |
---|---|
external |
IExternalMediaTrack |
media |
WebRtcMedia<WebRtcAudioTrack, WebRtcVideoTrack> |
Returns: WebRtcMediaTrack
Inherited from: WebRtcMediaTrackBase
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:136
Properties
_muted
• Private
_muted: boolean= false
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:141
Methods
addOnDestroyed
▸ addOnDestroyed(value
: IAction0): void
Parameters:
Name | Type |
---|---|
value |
IAction0 |
Returns: void
Implementation of: IInternalMediaTrack
Overrides: WebRtcMediaTrackBase
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:113
addOnMuted
▸ addOnMuted(value
: IAction0): void
Parameters:
Name | Type |
---|---|
value |
IAction0 |
Returns: void
Implementation of: IInternalMediaTrack
Overrides: WebRtcMediaTrackBase
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:101
addOnStarted
▸ addOnStarted(value
: IAction0): void
Parameters:
Name | Type |
---|---|
value |
IAction0 |
Returns: void
Implementation of: IInternalMediaTrack
Overrides: WebRtcMediaTrackBase
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:107
addOnStopped
▸ addOnStopped(value
: IAction0): void
Parameters:
Name | Type |
---|---|
value |
IAction0 |
Returns: void
Implementation of: IInternalMediaTrack
Overrides: WebRtcMediaTrackBase
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:110
addOnUnmuted
▸ addOnUnmuted(value
: IAction0): void
Parameters:
Name | Type |
---|---|
value |
IAction0 |
Returns: void
Implementation of: IInternalMediaTrack
Overrides: WebRtcMediaTrackBase
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:104
changeSinkOutput
▸ Abstract
changeSinkOutput(sinkOutput
: SinkOutput): Future<Object>
Changes the sink output while the media track is active.
Parameters:
Name | Type | Description |
---|---|---|
sinkOutput |
SinkOutput | The sink output. |
Returns: Future<Object>
Implementation of: IInternalMediaTrack
Inherited from: WebRtcMediaTrackBase
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrackBase.ts:64
changeSourceInput
▸ Abstract
changeSourceInput(sourceInput
: SourceInput): Future<Object>
Changes the source input while the media track is active.
Parameters:
Name | Type | Description |
---|---|---|
sourceInput |
SourceInput | The source input. |
Returns: Future<Object>
Implementation of: IInternalMediaTrack
Inherited from: WebRtcMediaTrackBase
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrackBase.ts:71
destroy
▸ destroy(): boolean
Returns: boolean
Implementation of: IInternalMediaTrack
Overrides: WebRtcMediaTrackBase
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:175
getDynamicProperties
▸ getDynamicProperties(): Hash<string, Object>
Gets all dynamic properties on this instance.
Returns: Hash<string, Object>
Inherited from: WebRtcMediaTrackBase
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: WebRtcMediaTrackBase
Defined in: Generated/TypeScript/fm.liveswitch/Dynamic.ts:58
getMedia
▸ getMedia(): WebRtcMedia<WebRtcAudioTrack, WebRtcVideoTrack>
Returns: WebRtcMedia<WebRtcAudioTrack, WebRtcVideoTrack>
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:134
getMediaConstraints
▸ getMediaConstraints(): MediaTrackConstraints
Returns: MediaTrackConstraints
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:52
getMuted
▸ getMuted(): boolean
Returns: boolean
Implementation of: IInternalMediaTrack
Overrides: WebRtcMediaTrackBase
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:142
getSinkOutput
▸ Abstract
getSinkOutput(): SinkOutput
Gets the current sink output.
Returns: SinkOutput
Implementation of: IInternalMediaTrack
Inherited from: WebRtcMediaTrackBase
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrackBase.ts:90
getSinkOutputs
▸ Abstract
getSinkOutputs(): Future<SinkOutput[]>
Gets the available sink outputs.
Returns: Future<SinkOutput[]>
A future with an array of sink outputs.
Implementation of: IInternalMediaTrack
Inherited from: WebRtcMediaTrackBase
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrackBase.ts:99
getSourceInput
▸ Abstract
getSourceInput(): SourceInput
Gets the current source input.
Returns: SourceInput
Implementation of: IInternalMediaTrack
Inherited from: WebRtcMediaTrackBase
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrackBase.ts:105
getSourceInputs
▸ Abstract
getSourceInputs(): Future<SourceInput[]>
Gets the available source inputs.
Returns: Future<SourceInput[]>
A future with an array of source inputs.
Implementation of: IInternalMediaTrack
Inherited from: WebRtcMediaTrackBase
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrackBase.ts:114
getTypeString
▸ getTypeString(): string
Returns: string
Overrides: WebRtcMediaTrackBase
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:4
raiseOnMuted
▸ Private
raiseOnMuted(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:185
raiseOnStarted
▸ Private
raiseOnStarted(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:195
raiseOnStopped
▸ Private
raiseOnStopped(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:200
raiseOnUnmuted
▸ Private
raiseOnUnmuted(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:190
removeOnDestroyed
▸ removeOnDestroyed(value
: IAction0): void
Parameters:
Name | Type |
---|---|
value |
IAction0 |
Returns: void
Implementation of: IInternalMediaTrack
Overrides: WebRtcMediaTrackBase
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:128
removeOnMuted
▸ removeOnMuted(value
: IAction0): void
Parameters:
Name | Type |
---|---|
value |
IAction0 |
Returns: void
Implementation of: IInternalMediaTrack
Overrides: WebRtcMediaTrackBase
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:116
removeOnStarted
▸ removeOnStarted(value
: IAction0): void
Parameters:
Name | Type |
---|---|
value |
IAction0 |
Returns: void
Implementation of: IInternalMediaTrack
Overrides: WebRtcMediaTrackBase
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:122
removeOnStopped
▸ removeOnStopped(value
: IAction0): void
Parameters:
Name | Type |
---|---|
value |
IAction0 |
Returns: void
Implementation of: IInternalMediaTrack
Overrides: WebRtcMediaTrackBase
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:125
removeOnUnmuted
▸ removeOnUnmuted(value
: IAction0): void
Parameters:
Name | Type |
---|---|
value |
IAction0 |
Returns: void
Implementation of: IInternalMediaTrack
Overrides: WebRtcMediaTrackBase
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:119
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: WebRtcMediaTrackBase
Defined in: Generated/TypeScript/fm.liveswitch/Dynamic.ts:95
setMuted
▸ setMuted(muted
: boolean): void
Parameters:
Name | Type |
---|---|
muted |
boolean |
Returns: void
Implementation of: IInternalMediaTrack
Overrides: WebRtcMediaTrackBase
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:149
setSinkOutput
▸ Abstract
setSinkOutput(value
: SinkOutput): void
Sets the current sink output.
Parameters:
Name | Type |
---|---|
value |
SinkOutput |
Returns: void
Implementation of: IInternalMediaTrack
Inherited from: WebRtcMediaTrackBase
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrackBase.ts:161
setSourceInput
▸ Abstract
setSourceInput(value
: SourceInput): void
Sets the current source input.
Parameters:
Name | Type |
---|---|
value |
SourceInput |
Returns: void
Implementation of: IInternalMediaTrack
Inherited from: WebRtcMediaTrackBase
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrackBase.ts:167
stop
▸ stop(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:161
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: WebRtcMediaTrackBase
Defined in: Generated/TypeScript/fm.liveswitch/Dynamic.ts:122