#include <publisher.h>

Data Fields
void * user_data
void(* on_rtc_stats_report )(otc_publisher *publisher, void *user_data, const struct otc_publisher_rtc_stats *stats, size_t entries)
void * reserved

Detailed Description

Defines the struct for setting the publisher RTC stats report callack.

See also : otc_publisher_set_rtc_stats_report_cb.

Field Documentation

on_rtc_stats_report

void(* on_rtc_stats_report) (otc_publisher *publisher, void *user_data, const struct otc_publisher_rtc_stats *stats, size_t entries)

Defines the callback function for getting publisher RTC stats reports.

Parameters : | | | | --- | --- | | publisher | The instance invoking this call. | | stats | A pointer to an array defining the RTC statistics for the publisher. For a routed session (a seesion that uses the OpenTok Media Router), this array includes one element, 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. | | entries | The size of the stats array. |

user_data

void* user_data

Pointer to user custom data bound to this struct.