18 #ifndef OTC_SESSION_FWD_DECL 19 #define OTC_SESSION_FWD_DECL 160 const char* json_array_of_reports);
337 const char* error_string,
479 uint32_t preferred_width,
480 uint32_t preferred_height);
492 uint32_t* preferred_width,
493 uint32_t* preferred_height);
533 float preferred_framerate);
546 float* preferred_framerate);
555 OTC_DECL(
const char*)
599 #endif // SUBSCRIBER_H void(* on_video_stats)(otc_subscriber *subscriber, void *user_data, struct otc_subscriber_video_stats video_stats)
Definition: subscriber.h:312
Definition: subscriber.h:47
void(* on_audio_stats)(otc_subscriber *subscriber, void *user_data, struct otc_subscriber_audio_stats audio_stats)
Definition: subscriber.h:301
Definition: audio_data.h:19
Definition: subscriber.h:80
int otc_status
Definition: base.h:153
uint64_t bytes_received
Definition: subscriber.h:65
struct otc_video_frame otc_video_frame
Definition: video_frame.h:25
struct otc_subscriber otc_subscriber
Definition: subscriber.h:28
void(* on_audio_disabled)(otc_subscriber *subscriber, void *user_data)
Definition: subscriber.h:242
Definition: subscriber.h:174
otc_status otc_subscriber_get_rtc_stats_report(const otc_subscriber *subscriber)
otc_status otc_subscriber_set_preferred_framerate(otc_subscriber *subscriber, float preferred_framerate)
void(* on_audio_level_updated)(otc_subscriber *subscriber, void *user_data, float audio_level)
Definition: subscriber.h:323
void(* on_video_disable_warning)(otc_subscriber *subscriber, void *user_data)
Definition: subscriber.h:268
otc_status otc_subscriber_get_audio_volume(const otc_subscriber *subscriber, double *volume)
otc_status otc_subscriber_set_subscribe_to_audio(otc_subscriber *subscriber, otc_bool subscribe_to_audio)
otc_status otc_subscriber_set_subscribe_to_video(otc_subscriber *subscriber, otc_bool subscribe_to_video)
Definition: subscriber.h:50
void(* on_audio_data)(otc_subscriber *subscriber, void *user_data, const struct otc_audio_data *audio_data)
Definition: subscriber.h:347
Definition: subscriber.h:39
double timestamp
Definition: subscriber.h:68
float audio_level
Definition: subscriber.h:67
uint64_t packets_received
Definition: subscriber.h:63
struct otc_session otc_session
Definition: session.h:21
void(* on_render_frame)(otc_subscriber *subscriber, void *user_data, const otc_video_frame *frame)
Definition: subscriber.h:210
Definition: subscriber.h:60
otc_status otc_subscriber_get_preferred_resolution(const otc_subscriber *subscriber, uint32_t *preferred_width, uint32_t *preferred_height)
otc_status otc_subscriber_set_subscribe_to_captions(otc_subscriber *subscriber, otc_bool subscribe_to_captions)
Definition: subscriber.h:96
void(* on_connected)(otc_subscriber *subscriber, void *user_data, const otc_stream *stream)
Definition: subscriber.h:183
otc_bool otc_subscriber_get_subscribe_to_captions(const otc_subscriber *subscriber)
otc_status otc_subscriber_get_preferred_framerate(const otc_subscriber *subscriber, float *preferred_framerate)
otc_status otc_subscriber_delete(otc_subscriber *subscriber)
void(* on_disconnected)(otc_subscriber *subscriber, void *user_data)
Definition: subscriber.h:193
uint64_t packets_received
Definition: subscriber.h:83
void(* on_error)(otc_subscriber *subscriber, void *user_data, const char *error_string, enum otc_subscriber_error_code error)
Definition: subscriber.h:335
void(* on_video_data_received)(otc_subscriber *subscriber, void *user_data)
Definition: subscriber.h:258
struct otc_stream otc_stream
Definition: stream.h:18
uint64_t bytes_received
Definition: subscriber.h:85
otc_subscriber_error_code
Definition: subscriber.h:35
otc_status otc_subscriber_set_preferred_resolution(otc_subscriber *subscriber, uint32_t preferred_width, uint32_t preferred_height)
void(* on_audio_enabled)(otc_subscriber *subscriber, void *user_data)
Definition: subscriber.h:250
Definition: subscriber.h:42
void * otc_subscriber_get_user_data(const otc_subscriber *subscriber)
void(* on_video_disabled)(otc_subscriber *subscriber, void *user_data, enum otc_video_reason reason)
Definition: subscriber.h:221
otc_bool otc_subscriber_get_subscribe_to_video(const otc_subscriber *subscriber)
double timestamp
Definition: subscriber.h:87
void * reserved
Definition: subscriber.h:361
Definition: subscriber.h:45
uint64_t packets_lost
Definition: subscriber.h:81
void(* on_video_disable_warning_lifted)(otc_subscriber *subscriber, void *user_data)
Definition: subscriber.h:291
void * user_data
Definition: subscriber.h:355
otc_stream * otc_subscriber_get_stream(const otc_subscriber *subscriber)
void(* on_reconnected)(otc_subscriber *subscriber, void *user_data)
Definition: subscriber.h:201
uint64_t packets_lost
Definition: subscriber.h:61
int otc_bool
Definition: base.h:127
void * user_data
Definition: subscriber.h:100
otc_video_reason
Definition: base.h:16
void(* on_caption_text)(otc_subscriber *subscriber, void *user_data, const char *text, otc_bool is_final)
Definition: subscriber.h:278
Definition: subscriber.h:52
otc_status otc_subscriber_set_rtc_stats_report_cb(otc_subscriber *subscriber, struct otc_subscriber_rtc_stats_report_cb cb)
void(* on_video_enabled)(otc_subscriber *subscriber, void *user_data, enum otc_video_reason reason)
Definition: subscriber.h:232
Definition: subscriber.h:37
Definition: subscriber.h:48
void(* on_rtc_stats_report)(otc_subscriber *subscriber, void *user_data, const char *json_array_of_reports)
Definition: subscriber.h:158
otc_bool otc_subscriber_get_subscribe_to_audio(const otc_subscriber *subscriber)
otc_subscriber * otc_subscriber_new(const otc_stream *stream, const struct otc_subscriber_callbacks *callbacks)
Definition: subscriber.h:36
otc_status otc_subscriber_set_audio_volume(otc_subscriber *subscriber, double volume)
otc_session * otc_subscriber_get_session(const otc_subscriber *subscriber)
const char * otc_subscriber_get_subscriber_id(const otc_subscriber *subscriber)