PublisherNetworkStats

public struct PublisherNetworkStats : Encodable

Contains information about outgoing network traffic to a single conference participant during a virtual visit.

  • The OpenTok (Vonage) id of the subscriber during a video conference.

    Declaration

    Swift

    public var subscriberId: String
  • The OpenTok (Vonage) id of the connection during a video conference.

    Declaration

    Swift

    public var connectionId: String
  • The number of packets that were successfully sent, and received by the subscriber.

    Declaration

    Swift

    public var packetsSent: Int64
  • The number of packets that were sent, but were not received by the subscriber.

    Declaration

    Swift

    public var packetsLost: Int64
  • The total number of bytes sent during the video conference.

    Declaration

    Swift

    public var bytesSent: Int64
  • The average network bandwidth (speed) that the conference is handling. This is calculated and updated in 3 second intervals throughout the video conference. After the conference ends, this value represents the network bandwidth of the final 3 second interval. This value only represents bandwidth in relation to this specific participant. The value is in bits per second.

    Declaration

    Swift

    public var bandwidthBitsPerSecond: Int64
  • The percentage of packets lost to the total number of packets sent to the participant.

    Declaration

    Swift

    public var packetLossRatio: Double
  • Last date time stats were updated. In UTC:0

    Declaration

    Swift

    public var lastUpdated: Date { get }
  • Start date time of the stats collection. In UTC:0

    Declaration

    Swift

    public var startDateTime: Date { get }
  • Default init

    Declaration

    Swift

    public init()
  • Custom encoder for sending network stats

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws