PublisherKit.PublisherVideoStats
Copy
public static class PublisherVideoStats
Enclosing class: PublisherKit
Defines video statistics for a publisher.
Properties
| Name | Type | Description |
|---|---|---|
connectionId |
String | The connection ID of the client subscribing to the stream. |
subscriberId |
String | 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 |
long | The total number of video packets packets that did not reach the subscriber (or the OpenTok Media Router). |
videoPacketsSent |
long | The total number of video packets sent sent to the subscriber (or to the OpenTok Media Router). |
videoBytesSent |
long | The total number of video bytes 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. |
videoLayers |
List<PublisherKit.VideoLayerStats> | The array of video layer statistics for this publisher. |
transport |
TransportStats | Transport-level network statistics. |
Methods
| Name | Description |
|---|---|
PublisherVideoStats(connectionId, subscriberId, videoPacketsLost, videoPacketsSent, videoBytesSent, timeStamp, startTime, videoLayers, transport) |
Creates a new instance of PublisherVideoStats. |
PublisherVideoStats(connectionId, subscriberId, videoPacketsLost, videoPacketsSent, videoBytesSent, timeStamp, startTime, videoLayers, transport)
Creates a new instance of PublisherVideoStats.
Parameters:
| Name | Type | Description |
|---|---|---|
connectionId |
String | |
subscriberId |
String | |
videoPacketsLost |
long | |
videoPacketsSent |
long | |
videoBytesSent |
long | |
timeStamp |
double | |
startTime |
double | |
videoLayers |
List<PublisherKit.VideoLayerStats> | |
transport |
TransportStats |