Format information. More...
Public Member Functions | |
FormatInfo () | |
Creates a new instance of a FormatInfo. More... | |
FormatInfo (fm.liveswitch.AudioFormat audioFormat) | |
Creates an instance of a FormatInfo from an AudioFormat. More... | |
FormatInfo (String codecName, int clockRate) | |
Creates a new instance of a FormatInfo. More... | |
FormatInfo (String name, int clockRate, int channelCount) | |
Creates a new instance of a FormatInfo. More... | |
FormatInfo (fm.liveswitch.VideoFormat videoFormat) | |
Creates an instance of a FormatInfo from a VideoFormat. More... | |
int | getChannelCount () |
Gets the channel count if available. More... | |
int | getClockRate () |
Gets the clock rate. More... | |
String | getCodecName () |
Gets the name. More... | |
String | getName () |
Gets the name. More... | |
boolean | isEquivalent (fm.liveswitch.FormatInfo instance) |
Checks if an instance is equivalent to this one. More... | |
boolean | isEquivalent (String name, int clockRate, int channelCount) |
Tests for equivalency. More... | |
void | setChannelCount (int value) |
Sets the channel count if available. More... | |
void | setClockRate (int value) |
Sets the clock rate. More... | |
void | setCodecName (String value) |
Sets the name. More... | |
void | setName (String value) |
Sets the name. More... | |
String | toJson () |
Serializes this instance to Json. More... | |
String | toString () |
Returns a string that represents this instance. More... | |
Public Member Functions inherited from fm.liveswitch.IEquivalent< fm.liveswitch.FormatInfo > | |
abstract boolean | isEquivalent (T instance) |
Checks if an instance is equivalent to this one. More... | |
Static Public Member Functions | |
static fm.liveswitch.FormatInfo | fromJson (String formatInfoJson) |
Deserializes Json to a FormatInfo. More... | |
static fm.liveswitch.FormatInfo[] | fromJsonArray (String formatInfosJson) |
Derializes an array of format infos from JSON. More... | |
static fm.liveswitch.FormatInfo[] | fromSdpMediaDescription (fm.liveswitch.sdp.MediaDescription sdpMediaDescription) |
Converts the RTP map attributes in an SDP media description to an array of FormatInfo objects. More... | |
static String | toJson (fm.liveswitch.FormatInfo formatInfo) |
Serializes an instance to Json. More... | |
static String | toJsonArray (fm.liveswitch.FormatInfo[] formatInfos) |
Serializes an array of format infos to JSON. More... | |
Format information.
fm.liveswitch.FormatInfo.FormatInfo | ( | ) |
Creates a new instance of a FormatInfo.
fm.liveswitch.FormatInfo.FormatInfo | ( | fm.liveswitch.AudioFormat | audioFormat | ) |
Creates an instance of a FormatInfo from an AudioFormat.
audioFormat | The audio format. |
fm.liveswitch.FormatInfo.FormatInfo | ( | String | codecName, |
int | clockRate | ||
) |
Creates a new instance of a FormatInfo.
codecName | The codec name. |
clockRate | The clock rate. |
fm.liveswitch.FormatInfo.FormatInfo | ( | String | name, |
int | clockRate, | ||
int | channelCount | ||
) |
Creates a new instance of a FormatInfo.
name | The name. |
clockRate | The clock rate. |
channelCount | The channel count. |
fm.liveswitch.FormatInfo.FormatInfo | ( | fm.liveswitch.VideoFormat | videoFormat | ) |
Creates an instance of a FormatInfo from a VideoFormat.
videoFormat | The video format. |
|
static |
Deserializes Json to a FormatInfo.
formatInfoJson | The serialized Json. |
|
static |
Derializes an array of format infos from JSON.
formatInfosJson | The format infos in JSON format. |
|
static |
Converts the RTP map attributes in an SDP media description to an array of FormatInfo objects.
sdpMediaDescription | The SDP media description. |
int fm.liveswitch.FormatInfo.getChannelCount | ( | ) |
Gets the channel count if available.
Unused for video codecs.
int fm.liveswitch.FormatInfo.getClockRate | ( | ) |
Gets the clock rate.
String fm.liveswitch.FormatInfo.getCodecName | ( | ) |
Gets the name.
String fm.liveswitch.FormatInfo.getName | ( | ) |
Gets the name.
boolean fm.liveswitch.FormatInfo.isEquivalent | ( | fm.liveswitch.FormatInfo | instance | ) |
Checks if an instance is equivalent to this one.
instance | The instance. |
boolean fm.liveswitch.FormatInfo.isEquivalent | ( | String | name, |
int | clockRate, | ||
int | channelCount | ||
) |
Tests for equivalency.
channelCount | The channel count. |
clockRate | The clock rate. |
name | The format name. |
void fm.liveswitch.FormatInfo.setChannelCount | ( | int | value | ) |
Sets the channel count if available.
Unused for video codecs.
void fm.liveswitch.FormatInfo.setClockRate | ( | int | value | ) |
Sets the clock rate.
void fm.liveswitch.FormatInfo.setCodecName | ( | String | value | ) |
Sets the name.
void fm.liveswitch.FormatInfo.setName | ( | String | value | ) |
Sets the name.
String fm.liveswitch.FormatInfo.toJson | ( | ) |
Serializes this instance to Json.
|
static |
|
static |
Serializes an array of format infos to JSON.
formatInfos | The format infos. |
String fm.liveswitch.FormatInfo.toString | ( | ) |
Returns a string that represents this instance.