/ fm / liveswitch / WebRtcAudioTrack
Class: WebRtcAudioTrack
fm.liveswitch.WebRtcAudioTrack
Hierarchy
-
↳ WebRtcAudioTrack
Implements
Table of contents
Constructors
Methods
- addOnDestroyed
- addOnLevel
- addOnMuted
- addOnStarted
- addOnStopped
- addOnUnmuted
- changeSinkOutput
- changeSourceInput
- destroy
- getDynamicProperties
- getDynamicValue
- getGain
- getLevelInterval
- getMedia
- getMediaConstraints
- getMuted
- getSinkOutput
- getSinkOutputs
- getSourceInput
- getSourceInputs
- getTypeString
- getVolume
- isLocal
- removeOnDestroyed
- removeOnLevel
- removeOnMuted
- removeOnStarted
- removeOnStopped
- removeOnUnmuted
- setDynamicValue
- setGain
- setLevelInterval
- setMuted
- setSinkOutput
- setSourceInput
- setVolume
- stop
- unsetDynamicValue
Constructors
constructor
+ new WebRtcAudioTrack(external
: IExternalAudioTrack, media
: WebRtcMedia<WebRtcAudioTrack, WebRtcVideoTrack>): WebRtcAudioTrack
Parameters:
Name | Type |
---|---|
external |
IExternalAudioTrack |
media |
WebRtcMedia<WebRtcAudioTrack, WebRtcVideoTrack> |
Returns: WebRtcAudioTrack
Inherited from: WebRtcMediaTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcAudioTrack.ts:13
Methods
addOnDestroyed
▸ addOnDestroyed(value
: IAction0): void
Parameters:
Name | Type |
---|---|
value |
IAction0 |
Returns: void
Implementation of: IInternalAudioTrack
Inherited from: WebRtcMediaTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:113
addOnLevel
▸ addOnLevel(value
: IAction1<number>): void
Parameters:
Name | Type |
---|---|
value |
IAction1<number> |
Returns: void
Implementation of: IInternalAudioTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcAudioTrack.ts:82
addOnMuted
▸ addOnMuted(value
: IAction0): void
Parameters:
Name | Type |
---|---|
value |
IAction0 |
Returns: void
Implementation of: IInternalAudioTrack
Inherited from: WebRtcMediaTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:101
addOnStarted
▸ addOnStarted(value
: IAction0): void
Parameters:
Name | Type |
---|---|
value |
IAction0 |
Returns: void
Implementation of: IInternalAudioTrack
Inherited from: WebRtcMediaTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:107
addOnStopped
▸ addOnStopped(value
: IAction0): void
Parameters:
Name | Type |
---|---|
value |
IAction0 |
Returns: void
Implementation of: IInternalAudioTrack
Inherited from: WebRtcMediaTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:110
addOnUnmuted
▸ addOnUnmuted(value
: IAction0): void
Parameters:
Name | Type |
---|---|
value |
IAction0 |
Returns: void
Implementation of: IInternalAudioTrack
Inherited from: WebRtcMediaTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:104
changeSinkOutput
▸ changeSinkOutput(sinkOutput
: SinkOutput): Future<Object>
Parameters:
Name | Type |
---|---|
sinkOutput |
SinkOutput |
Returns: Future<Object>
Implementation of: IInternalAudioTrack
Overrides: WebRtcMediaTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcAudioTrack.ts:24
changeSourceInput
▸ changeSourceInput(sourceInput
: SourceInput): Future<Object>
Parameters:
Name | Type |
---|---|
sourceInput |
SourceInput |
Returns: Future<Object>
Implementation of: IInternalAudioTrack
Overrides: WebRtcMediaTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcAudioTrack.ts:53
destroy
▸ destroy(): boolean
Returns: boolean
Implementation of: IInternalAudioTrack
Inherited from: WebRtcMediaTrack
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: WebRtcMediaTrack
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: WebRtcMediaTrack
Defined in: Generated/TypeScript/fm.liveswitch/Dynamic.ts:58
getGain
▸ getGain(): number
Returns: number
Implementation of: IInternalAudioTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcAudioTrack.ts:85
getLevelInterval
▸ getLevelInterval(): number
Returns: number
Implementation of: IInternalAudioTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcAudioTrack.ts:88
getMedia
▸ getMedia(): WebRtcMedia<WebRtcAudioTrack, WebRtcVideoTrack>
Returns: WebRtcMedia<WebRtcAudioTrack, WebRtcVideoTrack>
Inherited from: WebRtcMediaTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:134
getMediaConstraints
▸ getMediaConstraints(): MediaTrackConstraints
Returns: MediaTrackConstraints
Inherited from: WebRtcMediaTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:52
getMuted
▸ getMuted(): boolean
Returns: boolean
Implementation of: IInternalAudioTrack
Inherited from: WebRtcMediaTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:142
getSinkOutput
▸ getSinkOutput(): SinkOutput
Returns: SinkOutput
Implementation of: IInternalAudioTrack
Overrides: WebRtcMediaTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcAudioTrack.ts:32
getSinkOutputs
▸ getSinkOutputs(): Future<SinkOutput[]>
Returns: Future<SinkOutput[]>
Implementation of: IInternalAudioTrack
Overrides: WebRtcMediaTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcAudioTrack.ts:38
getSourceInput
▸ getSourceInput(): SourceInput
Returns: SourceInput
Implementation of: IInternalAudioTrack
Overrides: WebRtcMediaTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcAudioTrack.ts:61
getSourceInputs
▸ getSourceInputs(): Future<SourceInput[]>
Returns: Future<SourceInput[]>
Implementation of: IInternalAudioTrack
Overrides: WebRtcMediaTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcAudioTrack.ts:67
getTypeString
▸ getTypeString(): string
Returns: string
Overrides: WebRtcMediaTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcAudioTrack.ts:4
getVolume
▸ getVolume(): number
Returns: number
Implementation of: IInternalAudioTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcAudioTrack.ts:91
isLocal
▸ Private
isLocal(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcAudioTrack.ts:20
removeOnDestroyed
▸ removeOnDestroyed(value
: IAction0): void
Parameters:
Name | Type |
---|---|
value |
IAction0 |
Returns: void
Implementation of: IInternalAudioTrack
Inherited from: WebRtcMediaTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:128
removeOnLevel
▸ removeOnLevel(value
: IAction1<number>): void
Parameters:
Name | Type |
---|---|
value |
IAction1<number> |
Returns: void
Implementation of: IInternalAudioTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcAudioTrack.ts:94
removeOnMuted
▸ removeOnMuted(value
: IAction0): void
Parameters:
Name | Type |
---|---|
value |
IAction0 |
Returns: void
Implementation of: IInternalAudioTrack
Inherited from: WebRtcMediaTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:116
removeOnStarted
▸ removeOnStarted(value
: IAction0): void
Parameters:
Name | Type |
---|---|
value |
IAction0 |
Returns: void
Implementation of: IInternalAudioTrack
Inherited from: WebRtcMediaTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:122
removeOnStopped
▸ removeOnStopped(value
: IAction0): void
Parameters:
Name | Type |
---|---|
value |
IAction0 |
Returns: void
Implementation of: IInternalAudioTrack
Inherited from: WebRtcMediaTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:125
removeOnUnmuted
▸ removeOnUnmuted(value
: IAction0): void
Parameters:
Name | Type |
---|---|
value |
IAction0 |
Returns: void
Implementation of: IInternalAudioTrack
Inherited from: WebRtcMediaTrack
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: WebRtcMediaTrack
Defined in: Generated/TypeScript/fm.liveswitch/Dynamic.ts:95
setGain
▸ setGain(value
: number): void
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Implementation of: IInternalAudioTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcAudioTrack.ts:97
setLevelInterval
▸ setLevelInterval(value
: number): void
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Implementation of: IInternalAudioTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcAudioTrack.ts:100
setMuted
▸ setMuted(muted
: boolean): void
Parameters:
Name | Type |
---|---|
muted |
boolean |
Returns: void
Implementation of: IInternalAudioTrack
Inherited from: WebRtcMediaTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcMediaTrack.ts:149
setSinkOutput
▸ setSinkOutput(value
: SinkOutput): void
Parameters:
Name | Type |
---|---|
value |
SinkOutput |
Returns: void
Implementation of: IInternalAudioTrack
Overrides: WebRtcMediaTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcAudioTrack.ts:46
setSourceInput
▸ setSourceInput(value
: SourceInput): void
Parameters:
Name | Type |
---|---|
value |
SourceInput |
Returns: void
Implementation of: IInternalAudioTrack
Overrides: WebRtcMediaTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcAudioTrack.ts:75
setVolume
▸ setVolume(value
: number): void
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Implementation of: IInternalAudioTrack
Defined in: Generated/TypeScript/fm.liveswitch/WebRtcAudioTrack.ts:103
stop
▸ stop(): void
Returns: void
Inherited from: WebRtcMediaTrack
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: WebRtcMediaTrack
Defined in: Generated/TypeScript/fm.liveswitch/Dynamic.ts:122