Suggestions

close search

Add Messaging, Voice, and Authentication to your apps with Vonage Communications APIs

Visit the Vonage API Developer Portal

otc_publisher_audio_stats Struct Reference

#include <publisher.h>

Data Fields

const char * connection_id
const char * subscriber_id
int64_t packets_lost
int64_t packets_sent
int64_t bytes_sent
float audio_level
double timestamp
double start_time

Detailed Description

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.

Field Documentation

◆ audio_level

float audio_level

The audio level value, from 0 to 1.0.

◆ bytes_sent

int64_t bytes_sent

The total number of audio bytes sent to the subscriber (or to the OpenTok Media Router).

◆ connection_id

const char* connection_id

The connection ID of the client subscribing to the stream.

◆ packets_lost

int64_t packets_lost

The total number of audio packets that did not reach the subscriber (or the OpenTok Media Router).

◆ packets_sent

int64_t packets_sent

The total number of audio packets sent to the subscriber (or to the OpenTok Media Router).

◆ start_time

double start_time

The timestamp, in milliseconds since the Unix epoch, from which the cumulative totals started accumulating.

◆ subscriber_id

const char* subscriber_id

The subscriber ID of the client subscribing to the stream (in a relayed session).

◆ timestamp

double timestamp

The timestamp, in milliseconds since the Unix epoch, for when these stats were gathered.