/ fm / liveswitch / AudioEncodingConfig
Class: AudioEncodingConfig
fm.liveswitch.AudioEncodingConfig
Audio encoding configuration.
Hierarchy
-
↳ AudioEncodingConfig
Table of contents
Constructors
Methods
- deserializeProperties
- getBitrate
- getDeactivated
- getRtpStreamId
- getSynchronizationSource
- getTypeString
- serializeProperties
- setBitrate
- setDeactivated
- toJson
- toString
- fromJson
- fromJsonArray
- toJson
- toJsonArray
Constructors
constructor
+ new AudioEncodingConfig(): AudioEncodingConfig
Initializes a new instance of the [[fm.liveswitch.audioEncodingConfig]] class.
Returns: AudioEncodingConfig
Inherited from: EncodingConfig
Defined in: Generated/TypeScript/fm.liveswitch/AudioEncodingConfig.ts:12
+ new AudioEncodingConfig(encoding
: EncodingInfo): AudioEncodingConfig
Initializes a new instance of the [[fm.liveswitch.audioEncodingConfig]] class.
Parameters:
Name | Type | Description |
---|---|---|
encoding |
EncodingInfo | The encoding. |
Returns: AudioEncodingConfig
Inherited from: EncodingConfig
Defined in: Generated/TypeScript/fm.liveswitch/AudioEncodingConfig.ts:18
Methods
deserializeProperties
▸ Protected
deserializeProperties(key
: string, valueJson
: string): void
Deserializes the properties.
Parameters:
Name | Type | Description |
---|---|---|
key |
string | The key. |
valueJson |
string | The value in JSON format. |
Returns: void
Inherited from: EncodingConfig
Defined in: Generated/TypeScript/fm.liveswitch/EncodingConfig.ts:71
getBitrate
▸ getBitrate(): number
Gets the bitrate, in kbps.
Returns: number
Inherited from: EncodingConfig
Defined in: Generated/TypeScript/fm.liveswitch/EncodingConfig.ts:100
getDeactivated
▸ getDeactivated(): boolean
Gets whether this encoding is deactivated.
Returns: boolean
Inherited from: EncodingConfig
Defined in: Generated/TypeScript/fm.liveswitch/EncodingConfig.ts:112
getRtpStreamId
▸ getRtpStreamId(): string
Gets the RTP stream identifier.
Returns: string
Inherited from: EncodingConfig
Defined in: Generated/TypeScript/fm.liveswitch/EncodingConfig.ts:124
getSynchronizationSource
▸ getSynchronizationSource(): number
Gets the synchronization source.
Returns: number
Inherited from: EncodingConfig
Defined in: Generated/TypeScript/fm.liveswitch/EncodingConfig.ts:136
getTypeString
▸ getTypeString(): string
Returns: string
Overrides: EncodingConfig
Defined in: Generated/TypeScript/fm.liveswitch/AudioEncodingConfig.ts:10
serializeProperties
▸ Protected
serializeProperties(jsonObject
: Hash<string, string>): void
Serializes the properties.
Parameters:
Name | Type | Description |
---|---|---|
jsonObject |
Hash<string, string> | The JSON object. |
Returns: void
Inherited from: EncodingConfig
Defined in: Generated/TypeScript/fm.liveswitch/EncodingConfig.ts:149
setBitrate
▸ setBitrate(value
: number): void
Sets the bitrate, in kbps.
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Inherited from: EncodingConfig
Defined in: Generated/TypeScript/fm.liveswitch/EncodingConfig.ts:172
setDeactivated
▸ setDeactivated(value
: boolean): void
Sets whether this encoding is deactivated.
Parameters:
Name | Type |
---|---|
value |
boolean |
Returns: void
Inherited from: EncodingConfig
Defined in: Generated/TypeScript/fm.liveswitch/EncodingConfig.ts:185
toJson
▸ toJson(): string
Serializes this instance to JSON.
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/AudioEncodingConfig.ts:111
toString
▸ toString(): string
Returns a string that represents this instance.
Returns: string
A string that represents this instance.
Defined in: Generated/TypeScript/fm.liveswitch/AudioEncodingConfig.ts:126
fromJson
▸ Static
fromJson(encodingConfigJson
: string): AudioEncodingConfig
Deserializes an instance from JSON.
Parameters:
Name | Type | Description |
---|---|---|
encodingConfigJson |
string | The serialized JSON. |
Returns: AudioEncodingConfig
The deserialized instance.
Defined in: Generated/TypeScript/fm.liveswitch/AudioEncodingConfig.ts:47
fromJsonArray
▸ Static
fromJsonArray(encodingConfigsJson
: string): AudioEncodingConfig[]
Deserializes an array from JSON.
Parameters:
Name | Type | Description |
---|---|---|
encodingConfigsJson |
string | The serialized JSON. |
Returns: AudioEncodingConfig[]
The deserialized array.
Defined in: Generated/TypeScript/fm.liveswitch/AudioEncodingConfig.ts:65
toJson
▸ Static
toJson(encodingConfig
: AudioEncodingConfig): string
Serializes an instance to JSON.
Parameters:
Name | Type | Description |
---|---|---|
encodingConfig |
AudioEncodingConfig | The instance to serialize. |
Returns: string
The serialized JSON.
Defined in: Generated/TypeScript/fm.liveswitch/AudioEncodingConfig.ts:83
toJsonArray
▸ Static
toJsonArray(encodingConfigs
: AudioEncodingConfig[]): string
Serializes an array to JSON.
Parameters:
Name | Type | Description |
---|---|---|
encodingConfigs |
AudioEncodingConfig[] | The array to serialize. |
Returns: string
The serialized JSON.
Defined in: Generated/TypeScript/fm.liveswitch/AudioEncodingConfig.ts:99