public static interface PublisherKit.VideoStatsListener
Modifier and Type | Method and Description |
---|---|
void |
onVideoStats(PublisherKit publisher,
PublisherKit.PublisherVideoStats[] stats)
Called periodically to report video statistics for the publisher.
|
void onVideoStats(PublisherKit publisher, PublisherKit.PublisherVideoStats[] stats)
publisher
- The publisher.stats
- An array of PublisherKit.PublisherVideoStats
objects.
For a publisher in a routed session (one that uses the
OpenTok
Media Router), this array includes one object, defining the statistics
for the single video-media stream that is sent to the OpenTok Media Router.
In a relayed session, the array includes an object for each subscriber
to the published stream.
The PublisherKit.PublisherVideoStats
object includes properties.
properties for the video bytes received, video packets lost, and video
packets received for the publisher.