OTPublisherKitVideoNetworkStats

Describes video statistics for a publisher. See [OTPublisherKit setNetworkStatsDelegate:].

Properties

Name Type Description
connectionId NSString * The connection ID of the client subscribing to the stream.
subscriberId NSString * The subscriber ID of the client subscribing to the stream (in a relayed session). In a routed session, this is set to an empty string.
videoPacketsLost int64_t The estimated number of video packets that did not reach the subscriber (or the OpenTok Media Router).
videoPacketsSent int64_t The number of video packets packets sent to the subscriber (or to the OpenTok Media Router).
videoBytesSent int64_t The number of video bytes sent to the subscriber (or to the OpenTok Media Router).
timestamp double The timestamp, in milliseconds since the Unix epoch, for when these stats were gathered.
videoLayers NSArray<OTPublisherKitVideoLayerStats *> * The array of video layer statistics (instances of OTPublisherKitVideoLayerStats).
transport OTTransportStats * Network estimation stats.
startTime double The timestamp, in milliseconds since the Unix epoch, from which the cumulative totals started accumulating.

Methods

Name Description
initWithConnectionId:subscriberId:packetsLost:packetsSent:bytesSent:timestamp:startTime:videoLayers:transport:(connectionId, subscriberId, packetsLost, packetsSent, bytesSent, timestamp, startTime, videoLayers, transport) → {instancetype}

initWithConnectionId:subscriberId:packetsLost:packetsSent:bytesSent:timestamp:startTime:videoLayers:transport:(connectionId, subscriberId, packetsLost, packetsSent, bytesSent, timestamp, startTime, videoLayers, transport) → {instancetype}

Parameters:
Name Type Description
connectionId NSString *
subscriberId NSString *
packetsLost int64_t
packetsSent int64_t
bytesSent int64_t
timestamp double
startTime double
videoLayers NSArray<OTPublisherKitVideoLayerStats *> *
transport OTTransportStats *
Returns: