Format information.
More...
◆ FormatInfo() [1/5]
| fm.liveswitch.FormatInfo.FormatInfo |
( |
| ) |
|
◆ FormatInfo() [2/5]
◆ FormatInfo() [3/5]
| fm.liveswitch.FormatInfo.FormatInfo |
( |
String |
codecName, |
|
|
int |
clockRate |
|
) |
| |
Creates a new instance of a FormatInfo.
- Parameters
-
| codecName | The codec name. |
| clockRate | The clock rate. |
◆ FormatInfo() [4/5]
| fm.liveswitch.FormatInfo.FormatInfo |
( |
String |
name, |
|
|
int |
clockRate, |
|
|
int |
channelCount |
|
) |
| |
Creates a new instance of a FormatInfo.
- Parameters
-
| name | The name. |
| clockRate | The clock rate. |
| channelCount | The channel count. |
◆ FormatInfo() [5/5]
◆ fromJson()
◆ fromJsonArray()
Derializes an array of format infos from JSON.
- Parameters
-
| formatInfosJson | The format infos in JSON format. |
◆ fromSdpMediaDescription()
Converts the RTP map attributes in an SDP media description to an array of FormatInfo objects.
- Parameters
-
| sdpMediaDescription | The SDP media description. |
- Returns
- An array of FormatInfo objects.
◆ getChannelCount()
| int fm.liveswitch.FormatInfo.getChannelCount |
( |
| ) |
|
Gets the channel count if available.
Unused for video codecs.
◆ getClockRate()
| int fm.liveswitch.FormatInfo.getClockRate |
( |
| ) |
|
◆ getCodecName()
| String fm.liveswitch.FormatInfo.getCodecName |
( |
| ) |
|
◆ getName()
| String fm.liveswitch.FormatInfo.getName |
( |
| ) |
|
◆ isEquivalent() [1/3]
Checks if two instances are equivalent, treating two null references as equivalent.
- Parameters
-
| a | The first instance. |
| b | The second instance. |
- Returns
- if both are null or both are non-null and equivalent; otherwise, .
◆ isEquivalent() [2/3]
Checks if an instance is equivalent to this one.
- Parameters
-
◆ isEquivalent() [3/3]
| boolean fm.liveswitch.FormatInfo.isEquivalent |
( |
String |
name, |
|
|
int |
clockRate, |
|
|
int |
channelCount |
|
) |
| |
Tests for equivalency.
- Parameters
-
| channelCount | The channel count. |
| clockRate | The clock rate. |
| name | The format name. |
- Returns
- if equivalent; otherwise, .
◆ setChannelCount()
| void fm.liveswitch.FormatInfo.setChannelCount |
( |
int |
value | ) |
|
Sets the channel count if available.
Unused for video codecs.
◆ setClockRate()
| void fm.liveswitch.FormatInfo.setClockRate |
( |
int |
value | ) |
|
◆ setCodecName()
| void fm.liveswitch.FormatInfo.setCodecName |
( |
String |
value | ) |
|
◆ setName()
| void fm.liveswitch.FormatInfo.setName |
( |
String |
value | ) |
|
◆ toJson() [1/2]
| String fm.liveswitch.FormatInfo.toJson |
( |
| ) |
|
Serializes this instance to Json.
◆ toJson() [2/2]
Serializes an instance to Json.
- Parameters
-
| formatInfo | The instance to serialize. |
- Returns
- Serialized Json.
◆ toJsonArray()
Serializes an array of format infos to JSON.
- Parameters
-
| formatInfos | The format infos. |
◆ toString()
| String fm.liveswitch.FormatInfo.toString |
( |
| ) |
|
Returns a string that represents this instance.