Public Member Functions | |
| EncodingInfo () | |
| int | getBitrate () |
| Gets the bitrate, in kbps. More... | |
| boolean | getDeactivated () |
| Gets whether this encoding is deactivated. More... | |
| double | getFrameRate () |
| Gets the frame-rate, in fps. More... | |
| int | getHeight () |
| Gets the height. More... | |
| boolean | getIsEmpty () |
| Gets whether this encoding is empty. More... | |
| String | getRtpStreamId () |
| Gets the RTP stream identifier. More... | |
| double | getScale () |
| Gets the target scale. More... | |
| int | getScaledHeight () |
| Gets the scaled height. More... | |
| fm.liveswitch.Size | getScaledSize () |
| Gets the scaled size. More... | |
| int | getScaledWidth () |
| Gets the scaled width. More... | |
| fm.liveswitch.Size | getSize () |
| Gets the size. More... | |
| long | getSynchronizationSource () |
| Gets the synchronization source. More... | |
| int | getWidth () |
| Gets the width. More... | |
| boolean | isEquivalent (fm.liveswitch.EncodingInfo encoding) |
| Determines whether the specified encoding is equivalent. More... | |
| boolean | isEquivalent (fm.liveswitch.EncodingInfo encoding, boolean restrictionsOnly) |
| Determines whether the specified encoding is equivalent. More... | |
| void | setBitrate (int value) |
| Sets the bitrate, in kbps. More... | |
| void | setDeactivated (boolean value) |
| Sets whether this encoding is deactivated. More... | |
| void | setFrameRate (double value) |
| Sets the frame-rate, in fps. More... | |
| void | setRtpStreamId (String value) |
| Sets the RTP stream identifier. More... | |
| void | setScale (double value) |
| Sets the target scale. More... | |
| void | setSize (fm.liveswitch.Size value) |
| Sets the size. More... | |
| void | setSynchronizationSource (long value) |
| Sets the synchronization source. More... | |
| String | toJson () |
| Serializes this instance to JSON. More... | |
| fm.liveswitch.sdp.rtp.RidAttribute | toSdpRidAttribute (String direction) |
| Converts this instance into an SDP RID attribute. More... | |
| fm.liveswitch.sdp.rtp.RidAttribute | toSdpRidAttribute (String direction, boolean includeRestrictions) |
| Converts this instance into an SDP RID attribute. More... | |
| String | toString () |
| Returns a string that represents this instance. More... | |
Public Member Functions inherited from fm.liveswitch.Info | |
| String | getId () |
| Gets the identifier. More... | |
| void | setId (String value) |
| Sets the identifier. More... | |
Static Public Member Functions | |
| static fm.liveswitch.EncodingInfo | fromJson (String encodingInfoJson) |
| Deserializes an instance from JSON. More... | |
| static fm.liveswitch.EncodingInfo[] | fromJsonArray (String encodingInfosJson) |
| Deserializes an array from JSON. More... | |
| static fm.liveswitch.EncodingInfo | fromSdpRidAttribute (fm.liveswitch.sdp.rtp.RidAttribute ridAttribute) |
| Converts an SDP RID attribute into an instance. More... | |
| static boolean | isEquivalent (fm.liveswitch.EncodingInfo encoding1, fm.liveswitch.EncodingInfo encoding2) |
| Determines whether the two encodings are equivalent. More... | |
| static boolean | isEquivalent (fm.liveswitch.EncodingInfo encoding1, fm.liveswitch.EncodingInfo encoding2, boolean restrictionsOnly) |
| Determines whether the two encodings are equivalent. More... | |
| static fm.liveswitch.EncodingInfo | max (fm.liveswitch.EncodingInfo encoding1, fm.liveswitch.EncodingInfo encoding2) |
| Returns a new encoding with each value being the maximum of two input encodings. More... | |
| static fm.liveswitch.EncodingInfo | min (fm.liveswitch.EncodingInfo encoding1, fm.liveswitch.EncodingInfo encoding2) |
| Returns a new encoding with each value being the minimum of two input encodings. More... | |
| static String | toJson (fm.liveswitch.EncodingInfo encodingInfo) |
| Serializes an instance to JSON. More... | |
| static String | toJsonArray (fm.liveswitch.EncodingInfo[] encodingInfos) |
| Serializes an array to JSON. More... | |
| static fm.liveswitch.sdp.rtp.RidAttribute | toSdpRidAttribute (fm.liveswitch.EncodingInfo encoding, String direction) |
| Converts an instance into an SDP RID attribute. More... | |
| static fm.liveswitch.sdp.rtp.RidAttribute | toSdpRidAttribute (fm.liveswitch.EncodingInfo encoding, String direction, boolean includeRestrictions) |
| Converts an instance into an SDP RID attribute. More... | |
Static Public Member Functions inherited from fm.liveswitch.Info | |
| static< T extends fm.liveswitch.IEquivalent< T > T[] | processArray (T[] newValues, T[] oldValues) |
| Processes an array for an info. More... | |
| static fm.liveswitch.NullableBoolean | processBoolean (boolean newValue, boolean oldValue) |
| Processes a boolean for an info. More... | |
| static boolean[] | processBooleanArray (boolean[] newValues, boolean[] oldValues) |
| Processes a boolean array for an info. More... | |
| static fm.liveswitch.NullableDouble | processDouble (double newValue, double oldValue) |
| Processes a double for an info. More... | |
| static fm.liveswitch.NullableFloat | processFloat (float newValue, float oldValue) |
| Processes a float for an info. More... | |
| static float[] | processFloatArray (float[] newValues, float[] oldValues) |
| Processes a float array for an info. More... | |
| static double[] | processFloatArray (double[] newValues, double[] oldValues) |
| Processes a double array for an info. More... | |
| static fm.liveswitch.NullableInteger | processInteger (int newValue, int oldValue) |
| Processes an integer for an info. More... | |
| static int[] | processIntegerArray (int[] newValues, int[] oldValues) |
| Processes a integer array for an info. More... | |
| static fm.liveswitch.NullableLong | processLong (long newValue, long oldValue) |
| Processes a long for an info. More... | |
| static long[] | processLongArray (long[] newValues, long[] oldValues) |
| Processes a long array for an info. More... | |
| static< T extends Object &fm.liveswitch.IEquivalent< T > T | processObject (T newValue, T oldValue) |
| Processes an object for an info. More... | |
| static fm.liveswitch.NullableShort | processShort (short newValue, short oldValue) |
| Processes a short for an info. More... | |
| static short[] | processShortArray (short[] newValues, short[] oldValues) |
| Processes a short array for an info. More... | |
| static String | processString (String newValue, String oldValue) |
| Processes a string for an info. More... | |
Protected Member Functions | |
| void | deserializeProperties (String key, String valueJson) |
| Deserializes the properties. More... | |
| void | serializeProperties (java.util.HashMap< String, String > jsonObject) |
| Serializes the properties. More... | |
Protected Member Functions inherited from fm.liveswitch.Info | |
| Info () | |
Encoding information.
| fm.liveswitch.EncodingInfo.EncodingInfo | ( | ) |
|
protected |
Deserializes the properties.
| key | The key. |
| valueJson | The value in JSON format. |
Reimplemented from fm.liveswitch.Info.
|
static |
Deserializes an instance from JSON.
| encodingInfoJson | The serialized JSON. |
|
static |
Deserializes an array from JSON.
| encodingInfosJson | The serialized JSON. |
|
static |
Converts an SDP RID attribute into an instance.
| ridAttribute | The SDP RID attribute. |
| int fm.liveswitch.EncodingInfo.getBitrate | ( | ) |
Gets the bitrate, in kbps.
| boolean fm.liveswitch.EncodingInfo.getDeactivated | ( | ) |
Gets whether this encoding is deactivated.
| double fm.liveswitch.EncodingInfo.getFrameRate | ( | ) |
Gets the frame-rate, in fps.
| int fm.liveswitch.EncodingInfo.getHeight | ( | ) |
Gets the height.
| boolean fm.liveswitch.EncodingInfo.getIsEmpty | ( | ) |
Gets whether this encoding is empty.
| String fm.liveswitch.EncodingInfo.getRtpStreamId | ( | ) |
Gets the RTP stream identifier.
| double fm.liveswitch.EncodingInfo.getScale | ( | ) |
Gets the target scale.
| int fm.liveswitch.EncodingInfo.getScaledHeight | ( | ) |
Gets the scaled height.
| fm.liveswitch.Size fm.liveswitch.EncodingInfo.getScaledSize | ( | ) |
Gets the scaled size.
| int fm.liveswitch.EncodingInfo.getScaledWidth | ( | ) |
Gets the scaled width.
| fm.liveswitch.Size fm.liveswitch.EncodingInfo.getSize | ( | ) |
Gets the size.
| long fm.liveswitch.EncodingInfo.getSynchronizationSource | ( | ) |
Gets the synchronization source.
| int fm.liveswitch.EncodingInfo.getWidth | ( | ) |
Gets the width.
| boolean fm.liveswitch.EncodingInfo.isEquivalent | ( | fm.liveswitch.EncodingInfo | encoding | ) |
Determines whether the specified encoding is equivalent.
| encoding | The encoding. |
| boolean fm.liveswitch.EncodingInfo.isEquivalent | ( | fm.liveswitch.EncodingInfo | encoding, |
| boolean | restrictionsOnly | ||
| ) |
Determines whether the specified encoding is equivalent.
| encoding | The encoding. |
| restrictionsOnly | Whether to check restrictions only. |
|
static |
Determines whether the two encodings are equivalent.
| encoding1 | The first encoding. |
| encoding2 | The second encoding. |
|
static |
Determines whether the two encodings are equivalent.
| encoding1 | The first encoding. |
| encoding2 | The second encoding. |
| restrictionsOnly | Whether to check restrictions only. |
|
static |
Returns a new encoding with each value being the maximum of two input encodings.
| encoding1 | The first encoding. |
| encoding2 | The second encoding. |
|
static |
Returns a new encoding with each value being the minimum of two input encodings.
| encoding1 | The first encoding. |
| encoding2 | The second encoding. |
|
protected |
Serializes the properties.
| jsonObject | The JSON object. |
Reimplemented from fm.liveswitch.Info.
| void fm.liveswitch.EncodingInfo.setBitrate | ( | int | value | ) |
Sets the bitrate, in kbps.
| void fm.liveswitch.EncodingInfo.setDeactivated | ( | boolean | value | ) |
Sets whether this encoding is deactivated.
| void fm.liveswitch.EncodingInfo.setFrameRate | ( | double | value | ) |
Sets the frame-rate, in fps.
| void fm.liveswitch.EncodingInfo.setRtpStreamId | ( | String | value | ) |
Sets the RTP stream identifier.
| void fm.liveswitch.EncodingInfo.setScale | ( | double | value | ) |
Sets the target scale.
| void fm.liveswitch.EncodingInfo.setSize | ( | fm.liveswitch.Size | value | ) |
Sets the size.
| void fm.liveswitch.EncodingInfo.setSynchronizationSource | ( | long | value | ) |
Sets the synchronization source.
| String fm.liveswitch.EncodingInfo.toJson | ( | ) |
Serializes this instance to JSON.
|
static |
Serializes an instance to JSON.
| encodingInfo | The instance to serialize. |
|
static |
Serializes an array to JSON.
| encodingInfos | The array to serialize. |
|
static |
Converts an instance into an SDP RID attribute.
| encoding | The encoding. |
| direction | The direction. |
|
static |
Converts an instance into an SDP RID attribute.
| encoding | The encoding. |
| direction | The direction. |
| includeRestrictions | Whether to include restrictions. |
| fm.liveswitch.sdp.rtp.RidAttribute fm.liveswitch.EncodingInfo.toSdpRidAttribute | ( | String | direction | ) |
Converts this instance into an SDP RID attribute.
| direction | The direction. |
| fm.liveswitch.sdp.rtp.RidAttribute fm.liveswitch.EncodingInfo.toSdpRidAttribute | ( | String | direction, |
| boolean | includeRestrictions | ||
| ) |
Converts this instance into an SDP RID attribute.
| direction | The direction. |
| includeRestrictions | Whether to include restrictions. |
| String fm.liveswitch.EncodingInfo.toString | ( | ) |
Returns a string that represents this instance.