19 #ifndef OTC_SESSION_FWD_DECL 20 #define OTC_SESSION_FWD_DECL 64 OTC_MEDIA_TYPE_VIDEO = 0,
199 size_t number_of_stats);
212 size_t number_of_stats);
223 const char* error_string,
766 OTC_DECL(
const char*)
808 OTC_DECL(
const char*)
900 #endif // PUBLISHER_H int64_t packets_lost
Definition: publisher.h:108
Definition: publisher.h:56
int otc_status
Definition: base.h:153
struct otc_publisher otc_publisher
Definition: publisher.h:29
otc_status otc_publisher_settings_set_default_camera_capture_resolution(otc_publisher_settings *settings, const enum otc_camera_capture_resolution camera_capture_resolution)
Definition: publisher.h:44
struct otc_video_frame otc_video_frame
Definition: video_frame.h:25
otc_status otc_publisher_settings_set_noise_suppression(otc_publisher_settings *settings, otc_bool enabled)
double start_time
Definition: publisher.h:117
otc_status otc_publisher_set_publish_video(otc_publisher *publisher, otc_bool publish_video)
void * otc_publisher_get_user_data(const struct otc_publisher *publisher)
Definition: publisher.h:603
otc_status otc_publisher_settings_set_name(otc_publisher_settings *settings, const char *name)
enum otc_publisher_video_type otc_publisher_get_video_type(const struct otc_publisher *publisher)
float audio_level
Definition: publisher.h:87
otc_status otc_publisher_settings_set_disable_audio_processing(otc_publisher_settings *settings, otc_bool disabled)
double start_time
Definition: publisher.h:91
Definition: publisher.h:134
void(* on_render_frame)(otc_publisher *publisher, void *user_data, const otc_video_frame *frame)
Definition: publisher.h:164
Definition: video_capturer.h:43
const char * otc_publisher_get_name(const struct otc_publisher *publisher)
otc_status otc_publisher_settings_set_subscriber_audio_fallback_enabled(otc_publisher_settings *settings, const otc_bool enabled)
otc_bool otc_publisher_get_publish_video(const otc_publisher *publisher)
otc_bool otc_publisher_get_publish_captions(const otc_publisher *publisher)
void(* on_rtc_stats_report)(otc_publisher *publisher, void *user_data, const struct otc_publisher_rtc_stats *stats, size_t entries)
Definition: publisher.h:689
Definition: publisher.h:57
Definition: publisher.h:75
otc_status otc_publisher_settings_set_audio_track(otc_publisher_settings *settings, otc_bool enabled)
otc_status otc_publisher_delete(otc_publisher *publisher)
int64_t bytes_sent
Definition: publisher.h:85
const char * connection_id
Definition: publisher.h:608
otc_bool otc_publisher_get_audio_fallback_enabled(const otc_publisher *publisher)
otc_status otc_publisher_settings_set_stereo(otc_publisher_settings *settings, otc_bool enabled)
otc_publisher_video_type
Definition: publisher.h:55
void * user_data
Definition: publisher.h:673
struct otc_session otc_session
Definition: session.h:21
OpenTok Camera Capture Resolution on default video capturers.
otc_status otc_publisher_settings_set_auto_gain_control(otc_publisher_settings *settings, otc_bool enabled)
Definition: publisher.h:669
otc_session * otc_publisher_get_session(const otc_publisher *publisher)
Definition: publisher.h:46
otc_status otc_publisher_settings_set_publisher_audio_fallback_enabled(otc_publisher_settings *settings, const otc_bool enabled)
otc_status otc_publisher_set_video_type(struct otc_publisher *publisher, enum otc_publisher_video_type video_type)
otc_camera_capture_resolution
Definition: camera_capture_resolution.h:17
otc_status otc_publisher_set_publish_audio(otc_publisher *publisher, otc_bool publish_audio)
void(* on_video_enabled)(otc_publisher *publisher, void *user_data, enum otc_video_reason reason)
Definition: publisher.h:244
otc_status otc_publisher_get_rtc_stats_report(const otc_publisher *publisher)
double timestamp
Definition: publisher.h:114
Definition: publisher.h:102
struct otc_stream otc_stream
Definition: stream.h:18
const char * subscriber_id
Definition: publisher.h:78
void(* on_video_stats)(otc_publisher *publisher, void *user_data, struct otc_publisher_video_stats video_stats[], size_t number_of_stats)
Definition: publisher.h:209
double timestamp
Definition: publisher.h:88
otc_publisher_settings * otc_publisher_settings_new()
void(* on_video_disabled)(otc_publisher *publisher, void *user_data, enum otc_video_reason reason)
Definition: publisher.h:233
const char * connection_id
Definition: publisher.h:103
otc_publisher * otc_publisher_new(const char *name, const struct otc_video_capturer_callbacks *capturer, const struct otc_publisher_callbacks *callbacks)
void(* on_audio_stats)(otc_publisher *publisher, void *user_data, struct otc_publisher_audio_stats audio_stats[], size_t number_of_stats)
Definition: publisher.h:196
void(* on_audio_level_updated)(otc_publisher *publisher, void *user_data, float audio_level)
Definition: publisher.h:175
void * reserved
Definition: publisher.h:278
Definition: publisher.h:41
otc_status otc_publisher_settings_delete(otc_publisher_settings *settings)
otc_status otc_publisher_settings_set_opus_dtx(otc_publisher_settings *settings, otc_bool enabled)
otc_status otc_publisher_set_video_transformers(otc_publisher *publisher, otc_video_transformer **transformers, uint8_t size)
Sets an array of video transformers to this publisher's video stream. If null resets transformers.
void(* on_publisher_mute_forced)(otc_publisher *publisher, void *user_data)
Definition: publisher.h:185
int64_t packets_lost
Definition: publisher.h:81
void(* on_stream_destroyed)(otc_publisher *publisher, void *user_data, const otc_stream *stream)
Definition: publisher.h:153
const char * json_array_of_reports
Definition: publisher.h:661
int otc_bool
Definition: base.h:127
void * user_data
Definition: publisher.h:272
int64_t bytes_sent
Definition: publisher.h:112
void(* on_video_disable_warning)(otc_publisher *publisher, void *user_data)
Definition: publisher.h:256
otc_stream * otc_publisher_get_stream(otc_publisher *publisher)
otc_media_type
Media type.
Definition: publisher.h:63
void(* on_stream_created)(otc_publisher *publisher, void *user_data, const otc_stream *stream)
Definition: publisher.h:142
otc_video_reason
Definition: base.h:16
otc_status otc_publisher_settings_set_scalable_screenshare(otc_publisher_settings *settings, const otc_bool enabled)
const char * connection_id
Definition: publisher.h:76
int64_t packets_sent
Definition: publisher.h:110
Definition: publisher.h:45
otc_status otc_publisher_settings_set_video_capturer(otc_publisher_settings *settings, const struct otc_video_capturer_callbacks *capturer)
otc_publisher_error_code
Definition: publisher.h:39
otc_status otc_publisher_settings_set_video_track(otc_publisher_settings *settings, otc_bool enabled)
otc_status otc_publisher_set_audio_fallback_enabled(otc_publisher *publisher, otc_bool enabled)
struct otc_publisher_settings otc_publisher_settings
Definition: publisher.h:33
otc_status otc_publisher_settings_set_echo_cancellation(otc_publisher_settings *settings, otc_bool enabled)
otc_status otc_publisher_set_publish_captions(otc_publisher *publisher, otc_bool publish_captions)
otc_publisher * otc_publisher_new_with_settings(const struct otc_publisher_callbacks *callbacks, otc_publisher_settings *settings)
Definition: publisher.h:40
otc_status otc_publisher_set_audio_transformers(otc_publisher *publisher, otc_audio_transformer **transformers, uint8_t size)
Sets an array of audio transformers to this publisher's audio stream. If null resets transformers.
const char * otc_publisher_get_publisher_id(const otc_publisher *publisher)
otc_status otc_publisher_set_max_audio_bitrate(otc_publisher *publisher, uint32_t bitrate)
Definition: publisher.h:47
void(* on_error)(otc_publisher *publisher, void *user_data, const char *error_string, enum otc_publisher_error_code error_code)
Definition: publisher.h:221
void(* on_video_disable_warning_lifted)(otc_publisher *publisher, void *user_data)
Definition: publisher.h:266
int64_t packets_sent
Definition: publisher.h:83
otc_status otc_publisher_set_rtc_stats_report_cb(otc_publisher *publisher, const struct otc_publisher_rtc_stats_report_cb cb)
otc_bool otc_publisher_get_publish_audio(const otc_publisher *publisher)
const char * subscriber_id
Definition: publisher.h:105