FMLiveSwitchRemoteReceiverStats Class Reference

Remote receiver stats. More...

Instance Methods

(int) - cumulativeNumberOfPacketsLost
 Gets the cumulative number of packets lost. More...
 
(long long) - delaySinceLastSenderReport
 Gets the delay since last sender report. More...
 
(void) - deserializePropertiesWithKey:valueJson:
 Deserializes the properties. More...
 
(long long) - extendedHighestSequenceNumberReceived
 Gets the extended highest sequence number received. More...
 
(int) - fractionLost
 Gets the fraction lost according to RFC 1889. More...
 
(instancetype) - init
 
(long long) - interarrivalJitter
 Gets the interarrival jitter. More...
 
(bool) - isEquivalentWithInstance:
 Checks if a remote receiver is equivalent to this one. More...
 
(long long) - lastSenderReportTimestamp
 Gets the last sender report timestamp. More...
 
(double) - percentLost
 Gets the percentage of lost packets. More...
 
(void) - serializePropertiesWithJsonObject:
 Serializes the properties. More...
 
(long long) - synchronizationSource
 Gets the synchronization source. More...
 
(NSString *) - toJson
 Serializes this to JSON. More...
 
- Instance Methods inherited from <FMLiveSwitchIEquivalent>
(bool) - isEquivalentWithInstance:
 Checks if an instance is equivalent to this one. More...
 

Class Methods

(NSMutableArray *) + fromJsonArrayWithRemoteReceiversJson:
 Derializes a remote receiver stats array from JSON. More...
 
(FMLiveSwitchRemoteReceiverStats *) + fromJsonWithRemoteReceiverJson:
 Derializes remote receiver stats from JSON. More...
 
(FMLiveSwitchRemoteReceiverStats *) + remoteReceiverStats
 
(NSString *) + toJsonArrayWithRemoteReceivers:
 Serializes a remote receiver stats array to JSON. More...
 
(NSString *) + toJsonWithRemoteReceiver:
 Serializes remote receiver stats to JSON. More...
 

Detailed Description

Remote receiver stats.

Method Documentation

◆ cumulativeNumberOfPacketsLost

- (int) cumulativeNumberOfPacketsLost

Gets the cumulative number of packets lost.

◆ delaySinceLastSenderReport

- (long long) delaySinceLastSenderReport

Gets the delay since last sender report.

◆ deserializePropertiesWithKey:valueJson:

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

Deserializes the properties.

Parameters
keyThe key.
valueJsonThe value in JSON format.

◆ extendedHighestSequenceNumberReceived

- (long long) extendedHighestSequenceNumberReceived

Gets the extended highest sequence number received.

◆ fractionLost

- (int) fractionLost

Gets the fraction lost according to RFC 1889.

The value has a range of 0 (no packet loss) to 255 (all packets lost).

◆ fromJsonArrayWithRemoteReceiversJson:

+ (NSMutableArray*) fromJsonArrayWithRemoteReceiversJson: (NSString *)  remoteReceiversJson

Derializes a remote receiver stats array from JSON.

Parameters
remoteReceiversJsonThe remote receivers' stats JSON.

◆ fromJsonWithRemoteReceiverJson:

+ (FMLiveSwitchRemoteReceiverStats*) fromJsonWithRemoteReceiverJson: (NSString *)  remoteReceiverJson

Derializes remote receiver stats from JSON.

Parameters
remoteReceiverJsonThe remote receiver's stats JSON.

◆ init

- (instancetype) init

◆ interarrivalJitter

- (long long) interarrivalJitter

Gets the interarrival jitter.

◆ isEquivalentWithInstance:

- (bool) isEquivalentWithInstance: (FMLiveSwitchRemoteReceiverStats *)  instance

Checks if a remote receiver is equivalent to this one.

Parameters
instanceThe remote receiver.

◆ lastSenderReportTimestamp

- (long long) lastSenderReportTimestamp

Gets the last sender report timestamp.

◆ percentLost

- (double) percentLost

Gets the percentage of lost packets.

The value has a range of 0.0 (no packet loss) to 1.0 (all packets lost).

◆ remoteReceiverStats

+ (FMLiveSwitchRemoteReceiverStats*) remoteReceiverStats

◆ serializePropertiesWithJsonObject:

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

Serializes the properties.

Parameters
jsonObjectThe JSON object.

◆ synchronizationSource

- (long long) synchronizationSource

Gets the synchronization source.

◆ toJson

- (NSString*) toJson

Serializes this to JSON.

◆ toJsonArrayWithRemoteReceivers:

+ (NSString*) toJsonArrayWithRemoteReceivers: (NSMutableArray *)  remoteReceivers

Serializes a remote receiver stats array to JSON.

Parameters
remoteReceiversThe remote receivers' stats.

◆ toJsonWithRemoteReceiver:

+ (NSString*) toJsonWithRemoteReceiver: (FMLiveSwitchRemoteReceiverStats *)  remoteReceiver

Serializes remote receiver stats to JSON.

Parameters
remoteReceiverThe remote receiver's stats.