Skip to main content

[0.5.2] - 2026.12.03

New

  • rtc_set_audio_level: set the current level of an audio track. Previously, audio published with the C SDK carried no level information, so other members of the channel (web, apps) never saw that track as speaking — for example, conference terminals connected through the device gateway. Now, call it once per frame with the level computed from the PCM before encoding, and the track appears in the active speaker list like any other member. See rtc_set_audio_level
Struct layouts and existing function signatures are identical to 0.5.1; only one function is added, so just replace the library files and header. Behavior is unchanged if you don’t call the new function.

[0.5.1] - 2026.11.25

Fixes

  • librtc.so missing after extracting the Linux packages on Windows: the packages used to contain macOS ._* metadata files and extended headers, so some Windows extraction tools put the library into a folder such as GNUSparseFile.0 and left only a set of 1 KB ._ files outside. Packages now contain only the library files, the header and BUILD_INFO, and extract the same way on every platform
  • The static library librtc.a in the Linux packages was unusable: in the Linux amd64 / arm64 packages of 0.4.0 and earlier, librtc.a was only about 100 bytes and contained no code, so static linking failed with missing rtc_* symbols. It is now the complete static library. The shared library librtc.so and the Windows package were not affected
APIs and structs are identical to 0.4.0; just replace the library files. If you only use librtc.so and could already extract it, there is no need to upgrade.

[0.4.0] - 2026.11.24

New

  • SDK logs are uploaded to the server automatically. After joining a channel, the SDK uploads that channel’s logs (tagged with the channel name and uid) to the server-side log service in batches in the background. Technical support can look them up directly by channel and user, so troubleshooting join failures, disconnections, subscription problems and the like no longer requires collecting logs from the on-site server. On by default, uploading INFO and above; failed uploads are discarded and do not affect audio and video. Use rtc_set_log_upload to turn it off or change the level

Changes

  • Each locally printed log line now carries two extra fields, channel=... and uid=..., so logs can be told apart by channel when one process is in several channels
Struct layouts and existing function signatures are the same as 0.3.0; only one function is added, so just replace the library and header files. If your deployment should not let the SDK reach the log service, call rtc_set_log_upload(0, RTC_LOG_INFO) after upgrading to turn upload off.

[0.3.0] - 2026.11.24

New

  • rtc_set_device_type: set the device type reported at join, per instance. Members joined with the C SDK always had device type 80 (agent joining on the server side). You can now set it for each instance before joining; the device_type seen by other members and in server callbacks changes accordingly, which helps tell apart members coming from SIP, H.323, surveillance cameras and other sources. See rtc_set_device_type
Struct layouts and existing function signatures are the same as 0.2.0; only one function is added, so just replace the library and header files. If you don’t call the new function, the device type stays 80 and behavior is unchanged.

[0.2.0] - 2026.11.21

New

  • rtc_write_sample_ts: write samples by content time. Pass the frame’s capture / composite time (monotonic clock microseconds); the SDK converts it to the RTP timestamp and generates RTCP SR, so the subscriber aligns audio and video by content time and jitter from encoding time and send queuing no longer affects A/V sync. Suited to server-side compositing, transcoding and similar scenarios; see rtc_write_sample_ts. The existing rtc_write_sample behaves as before

Fixes

  • Network connections leaked when joining or reconnecting failed: if the media connection couldn’t be established at join (for example, the media server node was full or the connection timed out), or reconnection after a disconnect failed, the SDK didn’t close the connections it had created, leaving UDP ports and memory behind on every failure; long-running services accumulated more and more. They’re now fully released on failure, and a failed join also tells the server to leave, so it no longer holds a concurrency slot until the heartbeat times out
  • Re-subscribing after the network recovered received no data: if an unsubscribe request didn’t reach the server because of network problems, a later subscribe to the same track got “already subscribed” from the server, which the SDK treated as success, so no data ever arrived. The SDK now sends the missing unsubscribe first and then subscribes again; an unsubscribe that didn’t get through is also resent on the next subscribe
  • Unsubscribing and then subscribing to the same track at the same moment didn’t take effect: the two operations used to cancel each other out while the local side had already closed the track. They’re now executed in order
  • Couldn’t subscribe again after a subscribe timed out: the local record wasn’t cleared after a subscribe timeout. A timeout now rolls back, so you can retry directly
  • After reconnecting, H.264 video was recognized as VP8 and the Web side showed a black screen: when publishing resumed after an automatic reconnect, an H.264 track could be registered on the server as VP8, so subscribers received data but couldn’t decode the picture. The codec now stays the same after reconnecting
  • No notification when media reconnection failed: when automatic media reconnection gave up (retries exhausted or rejected by the server), the SDK used to sit silently in the disconnected state. It now leaves the channel and fires the disconnection callback with the server error code; calling the status query or leave-channel functions from within the disconnection callback no longer hangs either
  • Losing one remote audio packet caused about 4 seconds of stalling: when receiving audio, one lost packet upstream made the following audio pause for several seconds. The SDK now waits at most about 100 ms, then skips the lost packet and continues
  • Samples were corrupted when subscribing to G.711 (PCMU / PCMA) audio: when a remote user published G.711 (such as a SIP / H.323 device), the received audio samples were unusable. The G.711 payload is now output as-is
Struct layouts and existing function signatures are the same as 0.1.3; only one function is added, so just replace the library and header files. Programs that don’t call the new function need no code changes.

[0.1.3] - 2026.11.10

Changes

  • The Go toolchain used for builds is upgraded to 1.26.10 (previously 1.26.0), picking up upstream Go runtime fixes. The SDK code itself is the same as 0.1.2
  • BUILD_INFO in the release package now has a go line recording the Go version used for the build, which helps when troubleshooting
Struct layouts and function signatures are the same as 0.1.2, so just replace the library files.

[0.1.2] - 2026.11.05

Fixes

  • Your own user info had no tracks: rtc_get_local_user_info, and rtc_get_user_info called with your own uid, always returned an empty stream_tracks. It now contains the tracks you’ve published and updates right after you publish or unpublish
Struct layouts and function signatures are the same as 0.1.1, so just replace the library files.

[0.1.1] - 2026.11.05

Fixes

  • Track events could be missed when a remote user unpublished a track and immediately republished it: when a remote user did “unpublish → republish” back to back (for example, toggling a secondary video stream repeatedly), the SDK occasionally processed the two changes in reverse order and treated the newly published track as removed, so rtc_track_event_callback never received its “added” event and the track couldn’t be subscribed. Signaling is now processed in arrival order, so tracks are no longer lost
  • User / track event callbacks could arrive out of order: events such as “left” and “joined” for the same user, or “removed” and “added” for the same track, could previously arrive out of order. User, track, channel, custom message and reconnection-state callbacks now fire one at a time in the order the events happen and never run concurrently (except media sample, keyframe request and disconnection callbacks; see Callback registration)
Struct layouts and function signatures are the same as 0.1.0, so just replace the library files. Since event callbacks now fire one at a time, a slow callback delays the callbacks after it. Don’t do slow or blocking work in callbacks (queue slow processing and hand it to your own threads).

[0.1.0] - 2026.09.30

This release unifies error codes across all SDKs and is a breaking change, so the version jumps from 0.0.11 straight to 0.1.0.

Breaking changes

  • Error codes renumbered: SDK error codes returned by rtc_get_last_error are now 180 + a 3-digit code shared across platforms, so the same kind of error has the same last three digits in every SRTC SDK. See Error code format and C SDK · Error codes. Failures that used to fall under 180000 (general error) or -1 (no error code) now have specific codes. If your code branches on error codes, update it according to the table below:
  • Error reasons are now in English: the SDK error reason that rtc_get_last_error writes to msg_buf is now in English (such as Not in channel). Branch on the error code, not on the message text
  • When a function returns RTC_INVALID_PARAM / RTC_NOT_CONNECTED, the error is now recorded too (180031 / 180001), so rtc_get_last_error no longer returns a stale error left over from an earlier failure

Added

  • rtc_set_language(const char* lang): sets the language (such as "en" or "zh-CN"). It applies process-wide and can be called at any time. It determines the language of the reason text for server business errors (error code ≥1000); SDK errors are always in English. When it isn’t called, or NULL / an empty string is passed, the system language is used (environment variables LC_ALL → LC_MESSAGES → LANG). When the system language is C / POSIX or none of them is set, the server replies in Chinese, the same as earlier versions

Fixed

  • Brief network outages made the SDK leave the channel: failed network requests were mistaken for server rejections, so heartbeat / reconnect gave up and left the channel without retrying. Network errors are now retried, and the SDK leaves only when the server explicitly rejects
Struct layouts are the same as 0.0.11 and the signatures of existing functions are unchanged. Replacing the library files is enough to run; to call rtc_set_language you need to recompile with the new librtc.h. If you wrote logic that branches on error codes, update it according to the table above before upgrading.

[0.0.11] - 2026.09.26

Fixed

  • Callbacks could still be running after rtc_destroy returned: previously rtc_destroy only cleared the callbacks without waiting for callbacks already in progress, so freeing context after it could crash the caller. rtc_destroy now waits for all in-flight callbacks to return before it returns, after which context can be freed safely
  • Keyframe callbacks still fired after a local track was destroyed: rtc_destroy_local_track now removes the keyframe callback and waits for in-flight callbacks to return
  • Calling rtc_destroy in the disconnect callback deadlocked: you can now destroy the instance from any of its callbacks
  • When an instance is destroyed before an asynchronous join (rtc_join_channel) completes, it no longer stays in the channel indefinitely without leaving
The functions and struct layouts are identical to 0.0.10, so you can replace the library files directly. Code that waited a fixed time (sleep) after destroying to work around the issues above can be removed after upgrading.

[0.0.10] - 2026.09.26

Changed

  • Debug symbols are stripped from the library files, reducing the size of the Linux librtc.so by about 27% (17.6 MB → 12.8 MB). Functions and behavior are unchanged, and crash stack traces still print function names and line numbers
The interface is identical to 0.0.9; programs compiled against the 0.0.9 header can replace the library files directly.

[0.0.9] - 2026.09.26

Added

  • rtc_get_last_error: get the specific error code and reason after a function returns RTC_ERROR / RTC_TIMEOUT, without digging through the logs
  • rtc_set_disconnected_callback: reports the disconnect reason (removed from the channel / replaced by another session with the same uid / heartbeat timeout / channel destroyed) when the connection finally ends, with the RTC_DISCONNECT_* macros
  • rtc_get_local_user_info: get the local uid / sid
  • rtc_get_channel_info / rtc_free_channel_info and the rtc_channel_info_t struct
  • Added the macOS Apple Silicon platform (librtc.dylib)

Fixed

  • Joining a channel is about 3 seconds faster: previously every join waited idly for about 3 seconds before starting to establish the signaling connection; it now connects immediately (measured join time 3.4 s → 0.4 s). The reconnect interval after a disconnect is unchanged
  • Fixed an issue where the runtime treated the instance handle as an invalid pointer at certain moments and terminated the process
  • When the channel’s media streaming engine configuration is unknown, the SDK falls back to the default engine instead of failing to join

Breaking changes

  • Removed the rtc_user_info_t.link_id field (it was always 0 and had no actual meaning)
The memory layout of rtc_user_info_t changes as a result. Upgrading from 0.0.8 or earlier requires recompiling with the new librtc.h; replacing only the library files reads stream_tracks and other fields incorrectly, or even crashes. Just delete any code that references link_id.
The callback context must be a real pointer (or NULL). Don’t cast small integers to pointers to use as IDs; see Instance and channel · Callback registration.