SOSNetworkReporterDelegate

@protocol SOSNetworkReporterDelegate <NSObject>

Delegate protocol to listen to SOS network traffic events.

  • 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

    sessionId

    The SOS Session Id which correlates to the data being provided.

    bytesReceived

    The number of bytes received for video traffic since the last update.

    packetsReceived

    The number of packets received for video traffic since the last update.

    packetsLost

    The number of packets lost for video traffic since the last update.

    videoDimensions

    The size in pixels of the incoming video stream.

    timeStamp

    The 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

    sessionId

    The SOS Session Id which correlates to the data being provided.

    bytesReceived

    The number of bytes received for audio traffic since the last update.

    packetsReceived

    The number of packets received for audio traffic since the last update.

    packetsLost

    The number of packets lost for audio traffic since the last update.

    timeStamp

    The timestamp in millisecond epoch format.