com.opentok.android.PublisherKit.PublisherVideoStats
Enclosing class:
: PublisherKit
public static class PublisherKit.PublisherVideoStats extends Object
Defines video statistics for a publisher.
See Also:
: - PublisherKit.setVideoStatsListener(VideoStatsListener listener)
Field Summary
Fields
Modifier and Type
Field
Description
String
connectionId
The connection ID of the client subscribing to the stream.
double
startTime
The timestamp, in milliseconds since the Unix epoch, from which the cumulative totals started accumulating.
String
subscriberId
The subscriber ID of the client subscribing to the stream (in a relayed session).
double
timeStamp
The timestamp, in milliseconds since the Unix epoch, for when these stats were gathered.
TransportStats
transport
Transport-level network statistics.
long
videoBytesSent
The total number of video bytes bytes sent to the subscriber (or to the OpenTok Media Router).
List<PublisherKit.VideoLayerStats>
videoLayers
The array of video layer statistics for this publisher.
long
videoPacketsLost
The total number of video packets packets that did not reach the subscriber (or the OpenTok Media Router).
long
videoPacketsSent
The total number of video packets sent sent to the subscriber (or to the OpenTok Media Router).
Constructor Summary
Constructors
Constructor
Description
PublisherVideoStats(String connectionId, String subscriberId, long videoPacketsLost, long videoPacketsSent, long videoBytesSent, double timeStamp, double startTime, List<PublisherKit.VideoLayerStats> videoLayers, TransportStats transport)
Creates a new instance of PublisherVideoStats.
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Details
connectionId
public String connectionId
The connection ID of the client subscribing to the stream.
subscriberId
public String subscriberId
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
public long videoPacketsLost
The total number of video packets packets that did not reach the subscriber (or the OpenTok Media Router).
videoPacketsSent
public long videoPacketsSent
The total number of video packets sent sent to the subscriber (or to the OpenTok Media Router).
videoBytesSent
public long videoBytesSent
The total number of video bytes bytes sent to the subscriber (or to the OpenTok Media Router).
timeStamp
public double timeStamp
The timestamp, in milliseconds since the Unix epoch, for when these stats were gathered.
startTime
public double startTime
The timestamp, in milliseconds since the Unix epoch, from which the cumulative totals started accumulating.
videoLayers
public List<PublisherKit.VideoLayerStats> videoLayers
The array of video layer statistics for this publisher.
transport
public TransportStats transport
Transport-level network statistics.
Constructor Details
PublisherVideoStats
public PublisherVideoStats(String connectionId, String subscriberId, long videoPacketsLost, long videoPacketsSent, long videoBytesSent, double timeStamp, double startTime, List<PublisherKit.VideoLayerStats> videoLayers, TransportStats transport)
Creates a new instance of PublisherVideoStats.