/ fm / liveswitch / EncodingInfo
Class: EncodingInfo
fm.liveswitch.EncodingInfo
Encoding information.
Hierarchy
-
↳ EncodingInfo
Table of contents
Constructors
Methods
- deserializeProperties
- fmliveswitchEncodingInfoInit
- getBitrate
- getDeactivated
- getFrameRate
- getHeight
- getId
- getIsEmpty
- getRtpStreamId
- getScale
- getScaledHeight
- getScaledSize
- getScaledWidth
- getSize
- getSynchronizationSource
- getTypeString
- getWidth
- isEquivalent
- serializeProperties
- setBitrate
- setDeactivated
- setFrameRate
- setId
- setRtpStreamId
- setScale
- setSize
- setSynchronizationSource
- toJson
- toSdpRidAttribute
- toString
- fromJson
- fromJsonArray
- fromSdpRidAttribute
- isEquivalent
- max
- min
- processArray
- processBoolean
- processBooleanArray
- processDouble
- processFloat
- processFloatArray
- processInteger
- processIntegerArray
- processLong
- processLongArray
- processObject
- processShort
- processShortArray
- processString
- toJson
- toJsonArray
- toSdpRidAttribute
Constructors
constructor
+ new EncodingInfo(): EncodingInfo
Returns: EncodingInfo
Inherited from: Info
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:37
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
Overrides: Info
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:441
fmliveswitchEncodingInfoInit
▸ Private
fmliveswitchEncodingInfoInit(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:30
getBitrate
▸ getBitrate(): number
Gets the bitrate, in kbps.
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:501
getDeactivated
▸ getDeactivated(): boolean
Gets whether this encoding is deactivated.
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:513
getFrameRate
▸ getFrameRate(): number
Gets the frame-rate, in fps.
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:525
getHeight
▸ getHeight(): number
Gets the height.
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:537
getId
▸ getId(): string
Gets the identifier.
Returns: string
Inherited from: Info
Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:336
getIsEmpty
▸ getIsEmpty(): boolean
Gets whether this encoding is empty.
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:553
getRtpStreamId
▸ getRtpStreamId(): string
Gets the RTP stream identifier.
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:578
getScale
▸ getScale(): number
Gets the target scale.
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:590
getScaledHeight
▸ getScaledHeight(): number
Gets the scaled height.
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:602
getScaledSize
▸ getScaledSize(): Size
Gets the scaled size.
Returns: Size
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:618
getScaledWidth
▸ getScaledWidth(): number
Gets the scaled width.
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:638
getSize
▸ getSize(): Size
Gets the size.
Returns: Size
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:725
getSynchronizationSource
▸ getSynchronizationSource(): number
Gets the synchronization source.
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:750
getTypeString
▸ getTypeString(): string
Returns: string
Overrides: Info
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:10
getWidth
▸ getWidth(): number
Gets the width.
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:762
isEquivalent
▸ isEquivalent(encoding
: EncodingInfo): boolean
Determines whether the specified encoding is equivalent.
Parameters:
Name | Type | Description |
---|---|---|
encoding |
EncodingInfo | The encoding. |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:779
▸ isEquivalent(encoding
: EncodingInfo, restrictionsOnly
: boolean): boolean
Determines whether the specified encoding is equivalent.
Parameters:
Name | Type | Description |
---|---|---|
encoding |
EncodingInfo | The encoding. |
restrictionsOnly |
boolean | Whether to check restrictions only. |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:787
serializeProperties
▸ Protected
serializeProperties(jsonObject
: Hash<string, string>): void
Serializes the properties.
Parameters:
Name | Type | Description |
---|---|---|
jsonObject |
Hash<string, string> | The JSON object. |
Returns: void
Overrides: Info
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:870
setBitrate
▸ setBitrate(value
: number): void
Sets the bitrate, in kbps.
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:903
setDeactivated
▸ setDeactivated(value
: boolean): void
Sets whether this encoding is deactivated.
Parameters:
Name | Type |
---|---|
value |
boolean |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:916
setFrameRate
▸ setFrameRate(value
: number): void
Sets the frame-rate, in fps.
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:928
setId
▸ setId(value
: string): void
Sets the identifier.
Parameters:
Name | Type |
---|---|
value |
string |
Returns: void
Inherited from: Info
Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:363
setRtpStreamId
▸ setRtpStreamId(value
: string): void
Sets the RTP stream identifier.
Parameters:
Name | Type |
---|---|
value |
string |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:940
setScale
▸ setScale(value
: number): void
Sets the target scale.
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:952
setSize
▸ setSize(value
: Size): void
Sets the size.
Parameters:
Name | Type |
---|---|
value |
Size |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:1003
setSynchronizationSource
▸ setSynchronizationSource(value
: number): void
Sets the synchronization source.
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:1015
toJson
▸ toJson(): string
Serializes this instance to JSON.
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:1028
toSdpRidAttribute
▸ toSdpRidAttribute(direction
: string): RidAttribute
Converts this instance into an SDP RID attribute.
Parameters:
Name | Type | Description |
---|---|---|
direction |
string | The direction. |
Returns: RidAttribute
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:1041
▸ toSdpRidAttribute(direction
: string, includeRestrictions
: boolean): RidAttribute
Converts this instance into an SDP RID attribute.
Parameters:
Name | Type | Description |
---|---|---|
direction |
string | The direction. |
includeRestrictions |
boolean | Whether to include restrictions. |
Returns: RidAttribute
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:1049
toString
▸ toString(): string
Returns a string that represents this instance.
Returns: string
A string that represents this instance.
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:1070
fromJson
▸ Static
fromJson(encodingInfoJson
: string): EncodingInfo
Deserializes an instance from JSON.
Parameters:
Name | Type | Description |
---|---|---|
encodingInfoJson |
string | The serialized JSON. |
Returns: EncodingInfo
The deserialized instance.
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:86
fromJsonArray
▸ Static
fromJsonArray(encodingInfosJson
: string): EncodingInfo[]
Deserializes an array from JSON.
Parameters:
Name | Type | Description |
---|---|---|
encodingInfosJson |
string | The serialized JSON. |
Returns: EncodingInfo[]
The deserialized array.
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:105
fromSdpRidAttribute
▸ Static
fromSdpRidAttribute(ridAttribute
: RidAttribute): EncodingInfo
Converts an SDP RID attribute into an instance.
Parameters:
Name | Type | Description |
---|---|---|
ridAttribute |
RidAttribute | The SDP RID attribute. |
Returns: EncodingInfo
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:123
isEquivalent
▸ Static
isEquivalent(encoding1
: EncodingInfo, encoding2
: EncodingInfo): boolean
Determines whether the two encodings are equivalent.
Parameters:
Name | Type | Description |
---|---|---|
encoding1 |
EncodingInfo | The first encoding. |
encoding2 |
EncodingInfo | The second encoding. |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:148
▸ Static
isEquivalent(encoding1
: EncodingInfo, encoding2
: EncodingInfo, restrictionsOnly
: boolean): boolean
Determines whether the two encodings are equivalent.
Parameters:
Name | Type | Description |
---|---|---|
encoding1 |
EncodingInfo | The first encoding. |
encoding2 |
EncodingInfo | The second encoding. |
restrictionsOnly |
boolean | Whether to check restrictions only. |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:157
max
▸ Static
max(encoding1
: EncodingInfo, encoding2
: EncodingInfo): EncodingInfo
Returns a new encoding with each value being the maximum of two input encodings.
Parameters:
Name | Type | Description |
---|---|---|
encoding1 |
EncodingInfo | The first encoding. |
encoding2 |
EncodingInfo | The second encoding. |
Returns: EncodingInfo
A new encoding.
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:197
min
▸ Static
min(encoding1
: EncodingInfo, encoding2
: EncodingInfo): EncodingInfo
Returns a new encoding with each value being the minimum of two input encodings.
Parameters:
Name | Type | Description |
---|---|---|
encoding1 |
EncodingInfo | The first encoding. |
encoding2 |
EncodingInfo | The second encoding. |
Returns: EncodingInfo
A new encoding.
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:296
processArray
▸ Static
processArray<T>(newValues
: T[], oldValues
: T[]): T[]
Processes an array for an info.
Type parameters:
Name | Type |
---|---|
T |
IEquivalent<T, T> |
Parameters:
Name | Type | Description |
---|---|---|
newValues |
T[] | The new values. |
oldValues |
T[] | The old values. |
Returns: T[]
The new values, if the new values are not equivalent to the old values; otherwise null.
Inherited from: Info
Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:34
processBoolean
▸ Static
processBoolean(newValue
: boolean, oldValue
: boolean): boolean
Processes a boolean for an info.
Parameters:
Name | Type | Description |
---|---|---|
newValue |
boolean | The new value. |
oldValue |
boolean | The old value. |
Returns: boolean
The new value, if the new value does not equal the old value; otherwise null.
Inherited from: Info
Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:60
processBooleanArray
▸ Static
processBooleanArray(newValues
: boolean[], oldValues
: boolean[]): boolean[]
Processes a boolean array for an info.
Parameters:
Name | Type | Description |
---|---|---|
newValues |
boolean[] | The new values. |
oldValues |
boolean[] | The old values. |
Returns: boolean[]
The new values, if the new values do not equal the old values; otherwise null.
Inherited from: Info
Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:75
processDouble
▸ Static
processDouble(newValue
: number, oldValue
: number): number
Processes a double for an info.
Parameters:
Name | Type | Description |
---|---|---|
newValue |
number | The new value. |
oldValue |
number | The old value. |
Returns: number
The new value, if the new value does not equal the old value; otherwise null.
Inherited from: Info
Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:101
processFloat
▸ Static
processFloat(newValue
: number, oldValue
: number): number
Processes a float for an info.
Parameters:
Name | Type | Description |
---|---|---|
newValue |
number | The new value. |
oldValue |
number | The old value. |
Returns: number
The new value, if the new value does not equal the old value; otherwise null.
Inherited from: Info
Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:116
processFloatArray
▸ Static
processFloatArray(newValues
: number[], oldValues
: number[]): number[]
Processes a float array for an info.
Parameters:
Name | Type | Description |
---|---|---|
newValues |
number[] | The new values. |
oldValues |
number[] | The old values. |
Returns: number[]
The new values, if the new values do not equal the old values; otherwise null.
Inherited from: Info
Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:131
processInteger
▸ Static
processInteger(newValue
: number, oldValue
: number): number
Processes an integer for an info.
Parameters:
Name | Type | Description |
---|---|---|
newValue |
number | The new value. |
oldValue |
number | The old value. |
Returns: number
The new value, if the new value does not equal the old value; otherwise null.
Inherited from: Info
Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:157
processIntegerArray
▸ Static
processIntegerArray(newValues
: number[], oldValues
: number[]): number[]
Processes a integer array for an info.
Parameters:
Name | Type | Description |
---|---|---|
newValues |
number[] | The new values. |
oldValues |
number[] | The old values. |
Returns: number[]
The new values, if the new values do not equal the old values; otherwise null.
Inherited from: Info
Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:174
processLong
▸ Static
processLong(newValue
: number, oldValue
: number): number
Processes a long for an info.
Parameters:
Name | Type | Description |
---|---|---|
newValue |
number | The new value. |
oldValue |
number | The old value. |
Returns: number
The new value, if the new value does not equal the old value; otherwise null.
Inherited from: Info
Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:200
processLongArray
▸ Static
processLongArray(newValues
: number[], oldValues
: number[]): number[]
Processes a long array for an info.
Parameters:
Name | Type | Description |
---|---|---|
newValues |
number[] | The new values. |
oldValues |
number[] | The old values. |
Returns: number[]
The new values, if the new values do not equal the old values; otherwise null.
Inherited from: Info
Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:217
processObject
▸ Static
processObject<T>(newValue
: T, oldValue
: T): T
Processes an object for an info.
Type parameters:
Name | Type |
---|---|
T |
Object & IEquivalent<T, T> |
Parameters:
Name | Type | Description |
---|---|---|
newValue |
T | The new value. |
oldValue |
T | The old value. |
Returns: T
The new value, if the new value does not equal the old value; otherwise null.
Inherited from: Info
Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:243
processShort
▸ Static
processShort(newValue
: number, oldValue
: number): number
Processes a short for an info.
Parameters:
Name | Type | Description |
---|---|---|
newValue |
number | The new value. |
oldValue |
number | The old value. |
Returns: number
The new value, if the new value does not equal the old value; otherwise null.
Inherited from: Info
Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:264
processShortArray
▸ Static
processShortArray(newValues
: number[], oldValues
: number[]): number[]
Processes a short array for an info.
Parameters:
Name | Type | Description |
---|---|---|
newValues |
number[] | The new values. |
oldValues |
number[] | The old values. |
Returns: number[]
The new values, if the new values do not equal the old values; otherwise null.
Inherited from: Info
Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:281
processString
▸ Static
processString(newValue
: string, oldValue
: string): string
Processes a string for an info.
Parameters:
Name | Type | Description |
---|---|---|
newValue |
string | The new value. |
oldValue |
string | The old value. |
Returns: string
The new value, if the new value does not equal the old value; otherwise null.
Inherited from: Info
Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:307
toJson
▸ Static
toJson(encodingInfo
: EncodingInfo): string
Serializes an instance to JSON.
Parameters:
Name | Type | Description |
---|---|---|
encodingInfo |
EncodingInfo | The instance to serialize. |
Returns: string
The serialized JSON.
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:371
toJsonArray
▸ Static
toJsonArray(encodingInfos
: EncodingInfo[]): string
Serializes an array to JSON.
Parameters:
Name | Type | Description |
---|---|---|
encodingInfos |
EncodingInfo[] | The array to serialize. |
Returns: string
The serialized JSON.
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:388
toSdpRidAttribute
▸ Static
toSdpRidAttribute(encoding
: EncodingInfo, direction
: string): RidAttribute
Converts an instance into an SDP RID attribute.
Parameters:
Name | Type | Description |
---|---|---|
encoding |
EncodingInfo | The encoding. |
direction |
string | The direction. |
Returns: RidAttribute
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:403
▸ Static
toSdpRidAttribute(encoding
: EncodingInfo, direction
: string, includeRestrictions
: boolean): RidAttribute
Converts an instance into an SDP RID attribute.
Parameters:
Name | Type | Description |
---|---|---|
encoding |
EncodingInfo | The encoding. |
direction |
string | The direction. |
includeRestrictions |
boolean | Whether to include restrictions. |
Returns: RidAttribute
Defined in: Generated/TypeScript/fm.liveswitch/EncodingInfo.ts:412