OTPublisherKitNetworkStatsDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | OTPublisherKit.h |
Overview
Used to monitor audio and video statistics for the publisher. See [OTPublisherKit networkStatsDelegate].
– publisher:videoNetworkStatsUpdated:
Sent periodically to report video statistics for the publisher.
- (void)publisher:(nonnull OTPublisherKit *)publisher videoNetworkStatsUpdated:(nonnull NSArray<OTPublisherKitVideoNetworkStats*> *)stats
Parameters
publisher |
The publisher these statistic apply to. |
---|---|
stats |
An array of OTPublisherKitVideoNetworkStats 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 OTPublisherKitVideoNetworkStats object includes properties. properties for the video bytes received, video packets lost, and video packets sent for the publisher. |
Declared In
OTPublisherKit.h
– publisher:audioNetworkStatsUpdated:
Sent periodically to report audio statistics for the publisher.
- (void)publisher:(nonnull OTPublisherKit *)publisher audioNetworkStatsUpdated:(nonnull NSArray<OTPublisherKitAudioNetworkStats*> *)stats
Parameters
publisher |
The publisher these statistic apply to. |
---|---|
stats |
An array of OTPublisherKitAudioNetworkStats 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 audio 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 OTPublisherKitAudioNetworkStats object includes properties. properties for the audio bytes received, audio packets lost, and audio packets sent for the publisher. |
Declared In
OTPublisherKit.h