OTPublisherKitAudioNetworkStats
Describes audio statistics for a publisher. See [OTPublisherKit setNetworkStatsDelegate:].
Properties
| Name |
Type |
Description |
connectionId |
NSString * |
The connection ID of the subscribing client. |
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. |
audioPacketsLost |
int64_t |
The estimated number of audio packets that did not reach the subscriber (or the OpenTok Media Router). |
audioPacketsSent |
int64_t |
The number of audio packets sent to the subscriber (or to the OpenTok Media Router). |
audioBytesSent |
int64_t |
The number of audio 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. |
startTime |
double |
The timestamp, in milliseconds since the Unix epoch, from which the cumulative totals started accumulating. |
transport |
OTTransportStats * |
Network estimation stats. |
Methods
| Name |
Description |
initWithConnectionId:subscriberId:packetsLost:packetsSent:bytesSent:timestamp:startTime:transport:(connectionId, subscriberId, packetsLost, packetsSent, bytesSent, timestamp, startTime, transport) → {instancetype} |
|
initWithConnectionId:subscriberId:packetsLost:packetsSent:bytesSent:timestamp:startTime:transport:(connectionId, subscriberId, packetsLost, packetsSent, bytesSent, timestamp, startTime, transport) → {instancetype}
Parameters:
| Name |
Type |
Description |
connectionId |
NSString * |
|
subscriberId |
NSString * |
|
packetsLost |
int64_t |
|
packetsSent |
int64_t |
|
bytesSent |
int64_t |
|
timestamp |
double |
|
startTime |
double |
|
transport |
OTTransportStats * |
|
Returns: