FMLiveSwitchMediaTrackInfo Class Reference

Media track information. More...

Instance Methods

(void) - deserializePropertiesWithKey:valueJson:
 Deserializes the properties. More...
 
(FMLiveSwitchNullableBool *) - detached
 Gets the whether the media track is detached. More...
 
(instancetype) - init
 Create MediaTrackInfo instance. More...
 
(instancetype) - initWithStats:lastStats:
 Create MediaTrackInfo instance. More...
 
(FMLiveSwitchNullableBool *) - muted
 Gets the whether the media track is muted. More...
 
(FMLiveSwitchMediaTrackReport *) - report
 Gets the data stream report. More...
 
(void) - serializePropertiesWithJsonObject:
 Serializes the properties. More...
 
(void) - setDetached:
 Sets the whether the media track is detached. More...
 
(void) - setMuted:
 Sets the whether the media track is muted. More...
 
(void) - setReport:
 Sets the data stream report. More...
 
(void) - setStopped:
 Sets the whether the media track is stopped. More...
 
(FMLiveSwitchNullableBool *) - stopped
 Gets the whether the media track is stopped. More...
 
(NSString *) - toJson
 Serializes this instance to JSON. More...
 
- Instance Methods inherited from FMLiveSwitchInfo
(NSString *) - id
 Gets the identifier. More...
 
(void) - setId:
 Sets the identifier. More...
 

Class Methods

(NSMutableArray *) + fromJsonArrayWithMediaTrackInfosJson:
 Deserializes an array from JSON. More...
 
(FMLiveSwitchMediaTrackInfo *) + fromJsonWithMediaTrackInfoJson:
 Deserializes an instance from JSON. More...
 
(FMLiveSwitchMediaTrackInfo *) + mediaTrackInfo
 Create MediaTrackInfo instance. More...
 
(FMLiveSwitchMediaTrackInfo *) + mediaTrackInfoWithStats:lastStats:
 Create MediaTrackInfo instance. More...
 
(NSString *) + toJsonArrayWithMediaTrackInfos:
 Serializes an array to JSON. More...
 
(NSString *) + toJsonWithMediaTrackInfo:
 Serializes an instance to JSON. More...
 
- Class Methods inherited from FMLiveSwitchInfo
(FMLiveSwitchInfo *) + info
 
(NSMutableArray *) + processArrayWithNewValues:oldValues:
 Processes an array for an info. More...
 
(NSMutableArray *) + processBooleanArrayWithNewValues:oldValues:
 Processes a boolean array for an info. More...
 
(FMLiveSwitchNullableBool *) + processBooleanWithNewValue:oldValue:
 Processes a boolean for an info. More...
 
(FMLiveSwitchNullableDouble *) + processDoubleWithNewValue:oldValue:
 Processes a double for an info. More...
 
(NSMutableArray *) + processFloatArrayWithNewValues:oldValues:
 Processes a float array for an info. More...
 
(FMLiveSwitchNullableFloat *) + processFloatWithNewValue:oldValue:
 Processes a float for an info. More...
 
(NSMutableArray *) + processIntegerArrayWithNewValues:oldValues:
 Processes a integer array for an info. More...
 
(FMLiveSwitchNullableInt *) + processIntegerWithNewValue:oldValue:
 Processes an integer for an info. More...
 
(NSMutableArray *) + processLongArrayWithNewValues:oldValues:
 Processes a long array for an info. More...
 
(FMLiveSwitchNullableLong *) + processLongWithNewValue:oldValue:
 Processes a long for an info. More...
 
(NSObject< FMLiveSwitchIEquivalent > *) + processObjectWithNewValue:oldValue:
 Processes an object for an info. More...
 
(NSMutableArray *) + processShortArrayWithNewValues:oldValues:
 Processes a short array for an info. More...
 
(FMLiveSwitchNullableShort *) + processShortWithNewValue:oldValue:
 Processes a short for an info. More...
 
(NSString *) + processStringWithNewValue:oldValue:
 Processes a string for an info. More...
 

Detailed Description

Media track information.

Method Documentation

◆ deserializePropertiesWithKey:valueJson:

- (void) deserializePropertiesWithKey: (NSString *)  key
valueJson: (NSString *)  valueJson 

Deserializes the properties.

Parameters
keyThe key.
valueJsonThe value in JSON format.

Implements FMLiveSwitchInfo.

◆ detached

- (FMLiveSwitchNullableBool*) detached

Gets the whether the media track is detached.

◆ fromJsonArrayWithMediaTrackInfosJson:

+ (NSMutableArray*) fromJsonArrayWithMediaTrackInfosJson: (NSString *)  mediaTrackInfosJson

Deserializes an array from JSON.

Parameters
mediaTrackInfosJsonThe serialized JSON.
Returns
The deserialized array.

◆ fromJsonWithMediaTrackInfoJson:

+ (FMLiveSwitchMediaTrackInfo*) fromJsonWithMediaTrackInfoJson: (NSString *)  mediaTrackInfoJson

Deserializes an instance from JSON.

Parameters
mediaTrackInfoJsonThe serialized JSON.
Returns
The deserialized instance.

◆ init

- (instancetype) init

Create MediaTrackInfo instance.

Implements FMLiveSwitchInfo.

◆ initWithStats:lastStats:

- (instancetype) initWithStats: (FMLiveSwitchMediaTrackStats *)  stats
lastStats: (FMLiveSwitchMediaTrackStats *)  lastStats 

Create MediaTrackInfo instance.

Parameters
stats
lastStats

◆ mediaTrackInfo

+ (FMLiveSwitchMediaTrackInfo*) mediaTrackInfo

Create MediaTrackInfo instance.

◆ mediaTrackInfoWithStats:lastStats:

+ (FMLiveSwitchMediaTrackInfo*) mediaTrackInfoWithStats: (FMLiveSwitchMediaTrackStats *)  stats
lastStats: (FMLiveSwitchMediaTrackStats *)  lastStats 

Create MediaTrackInfo instance.

Parameters
stats
lastStats

◆ muted

- (FMLiveSwitchNullableBool*) muted

Gets the whether the media track is muted.

◆ report

Gets the data stream report.

◆ serializePropertiesWithJsonObject:

- (void) serializePropertiesWithJsonObject: (NSMutableDictionary< NSString *, NSString * > *)  jsonObject

Serializes the properties.

Parameters
jsonObjectThe JSON object.

Implements FMLiveSwitchInfo.

◆ setDetached:

- (void) setDetached: (FMLiveSwitchNullableBool *)  value

Sets the whether the media track is detached.

◆ setMuted:

- (void) setMuted: (FMLiveSwitchNullableBool *)  value

Sets the whether the media track is muted.

◆ setReport:

- (void) setReport: (FMLiveSwitchMediaTrackReport *)  value

Sets the data stream report.

◆ setStopped:

- (void) setStopped: (FMLiveSwitchNullableBool *)  value

Sets the whether the media track is stopped.

◆ stopped

- (FMLiveSwitchNullableBool*) stopped

Gets the whether the media track is stopped.

◆ toJson

- (NSString*) toJson

Serializes this instance to JSON.

◆ toJsonArrayWithMediaTrackInfos:

+ (NSString*) toJsonArrayWithMediaTrackInfos: (NSMutableArray *)  mediaTrackInfos

Serializes an array to JSON.

Parameters
mediaTrackInfosThe array to serialize.
Returns
The serialized JSON.

◆ toJsonWithMediaTrackInfo:

+ (NSString*) toJsonWithMediaTrackInfo: (FMLiveSwitchMediaTrackInfo *)  mediaTrackInfo

Serializes an instance to JSON.

Parameters
mediaTrackInfoThe instance to serialize.
Returns
The serialized JSON.