otc_publisher_rtc_stats_report_cb

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

Properties

Name Type Description
user_data void * Pointer to user custom data bound to this struct.
reserved void *

Callbacks

Name Description
on_rtc_stats_report(publisher, user_data, stats, entries) Defines the callback function for getting publisher RTC stats reports.

on_rtc_stats_report(publisher, user_data, stats, entries)

Defines the callback function for getting publisher RTC stats reports.

Parameters:
Name Type Description
publisher otc_publisher * The instance invoking this call.
user_data void *
stats const struct otc_publisher_rtc_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 size_t The size of the stats array.