SOSNetworkReporterDelegate
@protocol SOSNetworkReporterDelegate <NSObject>
Delegate protocol to listen to SOS network traffic events.
-
-videoNetworkStatsDidUpdateWithSessionId:bytesReceived:packetsReceived:packetsLost:videoDimensions:timeStamp:This method will return network traffic information relating to video traffic in SOS. This method should be fired every 30 seconds during an active session. All traffic info relates to incoming video traffic. The network reporting will only start once an SOS session has been fully negotiated.
Declaration
Objective-C
- (void) videoNetworkStatsDidUpdateWithSessionId:(nonnull NSString *)sessionId bytesReceived:(nonnull NSNumber *)bytesReceived packetsReceived:(nonnull NSNumber *)packetsReceived packetsLost:(nonnull NSNumber *)packetsLost videoDimensions:(nonnull CGSize *)videoDimensions timeStamp:(nonnull NSNumber *)timeStamp;Swift
func videoNetworkStatsDidUpdate(withSessionId sessionId: String, bytesReceived: NSNumber, packetsReceived: NSNumber, packetsLost: NSNumber, videoDimensions: UnsafeMutablePointer<CGSize>, timeStamp: NSNumber)Parameters
sessionIdThe SOS Session Id which correlates to the data being provided.
bytesReceivedThe number of bytes received for video traffic since the last update.
packetsReceivedThe number of packets received for video traffic since the last update.
packetsLostThe number of packets lost for video traffic since the last update.
videoDimensionsThe size in pixels of the incoming video stream.
timeStampThe timestamp in millisecond epoch format.
-
This method will return network traffic information relating to video traffic in SOS. This method should be fired every 30 seconds during an active session. All traffic info relates to incoming audio traffic. The network reporting will only start once an SOS session has been fully negotiated.
Declaration
Objective-C
- (void) audioNetworkStatsDidUpdateWithSessionId:(nonnull NSString *)sessionId bytesReceived:(nonnull NSNumber *)bytesReceived packetsReceived:(nonnull NSNumber *)packetsReceived packetsLost:(nonnull NSNumber *)packetsLost timeStamp:(nonnull NSNumber *)timeStamp;Swift
func audioNetworkStatsDidUpdate(withSessionId sessionId: String, bytesReceived: NSNumber, packetsReceived: NSNumber, packetsLost: NSNumber, timeStamp: NSNumber)Parameters
sessionIdThe SOS Session Id which correlates to the data being provided.
bytesReceivedThe number of bytes received for audio traffic since the last update.
packetsReceivedThe number of packets received for audio traffic since the last update.
packetsLostThe number of packets lost for audio traffic since the last update.
timeStampThe timestamp in millisecond epoch format.
Install in Dash
SOSNetworkReporterDelegate Protocol Reference