otc_publisher_audio_stats
Publisher audio stats.
This structure represents the publisher audio stats. The otc_publisher_callbacks struct includes a function pointer to an on_audio_stats function, which is called periodically to report audio 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 audio packets that did not reach the subscriber (or the OpenTok Media Router). |
packets_sent |
int64_t | The total number of audio packets sent to the subscriber (or to the OpenTok Media Router). |
bytes_sent |
int64_t | The total number of audio bytes sent to the subscriber (or to the OpenTok Media Router). |
audio_level |
float | The audio level value, from 0 to 1.0. |
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. |
transport |
otc_transport_stats | Transport statistics for this publisher |