- Enclosing class:
public static interface PublisherKit.VideoStatsListenerDefines the listener object for getting publisher video statistcs.
void onVideoStats(PublisherKit publisher, PublisherKit.PublisherVideoStats stats)Called periodically to report video statistics for the publisher.
publisher- The publisher.
stats- An array of
PublisherKit.PublisherVideoStatsobjects. 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.
PublisherKit.PublisherVideoStatsobject includes properties. properties for the video bytes received, video packets lost, and video packets received for the publisher.