otc_publisher_video_stats

Publisher video stats.

This structure represents the publisher video stats. The otc_publisher_callbacks struct includes a function pointer to an on_video_stats function, which is called periodically to report video stats.

Properties

Name Type Description
connection_id const char * The connection ID of the client subscribing to the stream.
subscriber_id const char * The subscriber ID of the client subscribing to the stream (in a relayed session).
packets_lost int64_t The total number of video packets packets that did not reach the subscriber (or the OpenTok Media Router).
packets_sent int64_t The total number of video packets sent sent to the subscriber (or to the OpenTok Media Router).
bytes_sent int64_t 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.
start_time double The timestamp, in milliseconds since the Unix epoch, from which the cumulative totals started accumulating.
number_of_video_layers size_t Number of video layers
video_layers struct otc_publisher_video_layer_stats Array of video layers statistics
transport otc_transport_stats Transport statistics for this publisher