Media track information. More...
Public Member Functions | |
fm.liveswitch.NullableBoolean | getDetached () |
Gets the whether the media track is detached. More... | |
fm.liveswitch.NullableBoolean | getMuted () |
Gets the whether the media track is muted. More... | |
fm.liveswitch.MediaTrackReport | getReport () |
Gets the data stream report. More... | |
fm.liveswitch.NullableBoolean | getStopped () |
Gets the whether the media track is stopped. More... | |
MediaTrackInfo () | |
Create MediaTrackInfo instance. More... | |
MediaTrackInfo (fm.liveswitch.MediaTrackStats stats, fm.liveswitch.MediaTrackStats lastStats) | |
Create MediaTrackInfo instance. More... | |
void | setDetached (fm.liveswitch.NullableBoolean value) |
Sets the whether the media track is detached. More... | |
void | setMuted (fm.liveswitch.NullableBoolean value) |
Sets the whether the media track is muted. More... | |
void | setReport (fm.liveswitch.MediaTrackReport value) |
Sets the data stream report. More... | |
void | setStopped (fm.liveswitch.NullableBoolean value) |
Sets the whether the media track is stopped. More... | |
String | toJson () |
Serializes this instance to JSON. 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.MediaTrackInfo | fromJson (String mediaTrackInfoJson) |
Deserializes an instance from JSON. More... | |
static fm.liveswitch.MediaTrackInfo[] | fromJsonArray (String mediaTrackInfosJson) |
Deserializes an array from JSON. More... | |
static String | toJson (fm.liveswitch.MediaTrackInfo mediaTrackInfo) |
Serializes an instance to JSON. More... | |
static String | toJsonArray (fm.liveswitch.MediaTrackInfo[] mediaTrackInfos) |
Serializes an array to JSON. 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 () | |
Media track information.
fm.liveswitch.MediaTrackInfo.MediaTrackInfo | ( | ) |
Create MediaTrackInfo instance.
fm.liveswitch.MediaTrackInfo.MediaTrackInfo | ( | fm.liveswitch.MediaTrackStats | stats, |
fm.liveswitch.MediaTrackStats | lastStats | ||
) |
Create MediaTrackInfo instance.
stats | |
lastStats |
|
protected |
Deserializes the properties.
key | The key. |
valueJson | The value in JSON format. |
Reimplemented from fm.liveswitch.Info.
|
static |
Deserializes an instance from JSON.
mediaTrackInfoJson | The serialized JSON. |
|
static |
Deserializes an array from JSON.
mediaTrackInfosJson | The serialized JSON. |
fm.liveswitch.NullableBoolean fm.liveswitch.MediaTrackInfo.getDetached | ( | ) |
Gets the whether the media track is detached.
fm.liveswitch.NullableBoolean fm.liveswitch.MediaTrackInfo.getMuted | ( | ) |
Gets the whether the media track is muted.
fm.liveswitch.MediaTrackReport fm.liveswitch.MediaTrackInfo.getReport | ( | ) |
Gets the data stream report.
fm.liveswitch.NullableBoolean fm.liveswitch.MediaTrackInfo.getStopped | ( | ) |
Gets the whether the media track is stopped.
|
protected |
Serializes the properties.
jsonObject | The JSON object. |
Reimplemented from fm.liveswitch.Info.
void fm.liveswitch.MediaTrackInfo.setDetached | ( | fm.liveswitch.NullableBoolean | value | ) |
Sets the whether the media track is detached.
void fm.liveswitch.MediaTrackInfo.setMuted | ( | fm.liveswitch.NullableBoolean | value | ) |
Sets the whether the media track is muted.
void fm.liveswitch.MediaTrackInfo.setReport | ( | fm.liveswitch.MediaTrackReport | value | ) |
Sets the data stream report.
void fm.liveswitch.MediaTrackInfo.setStopped | ( | fm.liveswitch.NullableBoolean | value | ) |
Sets the whether the media track is stopped.
String fm.liveswitch.MediaTrackInfo.toJson | ( | ) |
Serializes this instance to JSON.
|
static |
Serializes an instance to JSON.
mediaTrackInfo | The instance to serialize. |
|
static |
Serializes an array to JSON.
mediaTrackInfos | The array to serialize. |