Skip to main content
This page summarizes the data structures and constants exposed in librtc.h.

Data structures

rtc_track_info_t

Track info. Appears in the track event callback, the track data callback, and the stream_tracks array of user info.

rtc_user_info_t

User info. Returned by rtc_get_user_info / rtc_get_users_info, and also appears in the track data callback.
props and stream_tracks are allocated dynamically by the SDK, so an rtc_user_info_t returned by a query function must be freed with rtc_free_user_info / rtc_free_users_info. See User info queries.
The link_id field was removed in 0.0.9, which changed the struct layout. When upgrading from an older version, you must recompile with the new librtc.h; replacing only the library files reads the wrong fields or even crashes. Just delete any code that references link_id (it was always 0 before).

rtc_channel_info_t

Channel info, returned by rtc_get_channel_info (since 0.0.9).

rtc_publish_options_t

Publish options; see Publishing.

SeaStart structs

For rtc_layer_switched_t, rtc_quality_sample_t, rtc_connection_quality_t, and rtc_active_speaker_t, see SeaStart advanced features.

rtc_custom_msg_t

See Custom messages.

Constants

Codecs

The header also provides an inline helper that converts a codec to a readable string:

Log levels

Reserved composite stream identifiers


Callback parameter enums

These values appear as int in callback parameters; the header has no corresponding macros for them. Connection state (state in rtc_connection_callback) Disconnect reason (reason in rtc_disconnected_callback, since 0.0.9; the header does have corresponding macros) User event (event_type in rtc_user_event_callback) Track event (event_type in rtc_track_event_callback) Track kind (rtc_track_info_t.kind)

Callback signatures