#include <subscriber.h>

Data Fields
void * user_data
void(* on_rtc_stats_report )(otc_subscriber *subscriber, void *user_data, const char *json_array_of_reports)
void * reserved

Detailed Description

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

See also : otc_subscriber_set_rtc_stats_report_cb.

Field Documentation

on_rtc_stats_report

void(* on_rtc_stats_report) (otc_subscriber *subscriber, void *user_data, const char *json_array_of_reports)

Defines the callback function for getting subscriber RTC stats reports.

Parameters : | | | | --- | --- | | subscriber | The instance invoking this call. | | user_data | Pointer to user custom data bound to this struct. | | json_array_of_reports | Array of RTC stats reports for the subscriber's stream. The structure of the JSON array is similar to the format of the RtcStatsReport object implemented in web browsers (see Mozilla docs). Also see this W3C documentation. |

Here is a partial sample:

user_data

void* user_data

Pointer to user custom data bound to this struct.