Skip to main content

[1.10.1] - 2026.11.30

Fixed

  • When the same user receives the server’s “user joined” message again within the same join session, it is now handled as a user info update and only channel(_:userDidUpdate:) is dispatched. Previously userDidLeave (with reason error) was dispatched first and then userDidJoin, so other members saw “X joined → X left → X joined”, and the user’s audio and video were unsubscribed and subscribed again.
  • After a user rejoins with a new session (signed in elsewhere, or rejoined after a disconnect), a late leave message from the old session no longer removes the user from the channel.
Behavior is unchanged when a user is replaced or rejoins with a new session: userDidLeave (with reason error) is still dispatched before userDidJoin. No API changes, so 1.10.0 integration code compiles as is, and the platform minimums are unchanged (iOS 16 / macOS 12.3). SRTCBroadcastKit is 1.0.24 in this release; its code is unchanged and only its version number is bumped along with the SDK.

[1.10.0] - 2026.11.24

Added

  • Pre-call network check networkCheck: callable before joining without join authentication, it checks 5 items in a fixed order, permission (cellular data permission) → connectivity (whether the device is online) → mtu → dns → server (API / signaling / media), calls onItem on the main thread as each item completes, and finally returns a NetworkCheckResult (ok / warning / fail; each item carries a machine-readable reason and a Chinese message ready for display). When everything is normal, it takes about 1–5 seconds; the per-item timeout defaults to 3000 milliseconds. See SRTCEngine and Types.
    • SRTCEngine.networkCheck(appId:serverUrl:timeoutMs:onItem:); if you already have a token, you can also use networkCheck(token:timeoutMs:onItem:) (it only takes the app_id and server address from the token, so an expired token works too)
    • cancelNetworkCheck() cancels the running check, which then throws cancelled; only one check can run at a time, and a repeated call throws alreadyJoined
    • New types NetworkCheckResult, NetworkCheckItem, NetworkCheckItemId, NetworkCheckStatus, NetworkCheckItemStatus, NetworkCheckData, NetworkCheckSubCheck, and NetworkCheckHost, all Codable
The API check in server requires server-side support for the pre-call network check. If the server hasn’t been upgraded, that check is fail (api_unreachable), and mtu and the signaling and media checks are skipped; other items are unaffected. APIs are only added, not removed or changed, so 1.9.0 integration code compiles as is, and the platform minimums are unchanged (iOS 16 / macOS 12.3). SRTCBroadcastKit is 1.0.23 in this release; its code is unchanged and only its version number is bumped along with the SDK.

[1.9.0] - 2026.11.24

Added

  • Local network quality didUpdateLocalQuality: the SDK computes uplink and downlink round-trip time, packet loss, jitter, and level locally from WebRTC statistics, and delivers a LocalQualitySnapshot about every 2 seconds, on both the SeaStart and Wangsu (CDN) engines. Wangsu channels previously had no network quality data at all; you can now build signal-strength icons and network details panels for them. Channel.getLocalQuality() reads the latest sample. See Call quality and Types.

Fixed

  • On the SeaStart engine, resubscribing could receive no data: when an unsubscribe request didn’t reach the server (or an unsubscribe and a subscribe happened at the same time), the old subscription remained on the server, and the “already subscribed” response to the resubscribe was treated as success. The symptom was a successful subscription with no video frames and no audio at all (common when a user rejoins the channel or the mixed video is rebuilt). The SDK now resends the unsubscribe before resubscribing, and a failed unsubscribe is also resent in the next round.
APIs are only added, not removed or changed, so 1.8.0 integration code compiles as is, and the platform minimums are unchanged (iOS 16 / macOS 12.3). SRTCBroadcastKit is 1.0.22 in this release; its code is unchanged and only its version number is bumped along with the SDK.

[1.8.0] - 2026.11.16

Added

  • AI noise suppression plugin SRTCDeepFilterNet: a new optional product in the same package, based on DeepFilterNet3 and using the same algorithm and model as the Web noise suppression plugin. It takes effect once set on audioCaptureProcessor and supports runtime strength adjustment (0–100) and bypass; it throws featureNotSupported on unsupported devices, and pauses automatically and calls onOverload when the CPU can’t keep up during a call. See AI noise suppression.
  • AudioProcessingDeclaring / AudioProcessingConstraints: a capture processor can declare its requirements for WebRTC’s built-in noise suppression, echo cancellation, and automatic gain control. The SDK applies the declaration when the processor is set as audioCaptureProcessor and restores the defaults when it’s cleared. See Types.
APIs are only added, not removed or changed, so 1.7.0 integration code compiles as is, and the platform minimums are unchanged (iOS 16 / macOS 12.3). SRTCBroadcastKit is 1.0.21 in this release; its code is unchanged and only its version number is bumped along with the SDK.

[1.7.0] - 2026.11.03

Breaking change (macOS only): the virtual background APIs are no longer available on macOS. iOS is unaffected; the APIs and the effect are unchanged there.Symbols no longer available on macOS:
  • The types SRTCVirtualBackground and SRTCVirtualBackgroundEffect
  • On SRTCEngine: virtualBackground, installVirtualBackground(modelPath:), uninstallVirtualBackground(), enableVirtualBackground(_:), isVirtualBackgroundEnabled, setVirtualBackgroundBlur(level:), setVirtualBackgroundImage(_:), setVirtualBackgroundInferenceInterval(_:), setVirtualBackgroundMaskSync(_:)
Kept on both platforms: SRTCNativeImage, and the 4 virtual background error codes in SRTCError (error codes are only ever added, never removed).Projects that call these APIs on macOS fail to compile after upgrading; wrap code shared by both platforms in #if os(iOS). If you still need virtual background on macOS, stay on 1.6.0.

Changed

  • The macOS minimum is lowered from 14 to 12.3 (where ScreenCaptureKit, used for screen sharing, begins); iOS is still 16. Projects below the minimum get a dependency resolution failure, not a compile error.
  • The macOS build no longer links the virtual background inference runtime; virtual background on iOS and the inference runtime version are unchanged.
iOS integrations can upgrade directly. SRTCBroadcastKit is 1.0.20 in this release; its code is unchanged, and only the version number was bumped along with the SDK.

[1.6.0] - 2026.10.30

Added

  • Your own volume now also comes through didChangeActiveSpeakers: the snapshot gains a local entry with ActiveSpeakerInfo.isLocal == true, whose trackId is your published audio track. It appears only while you are publishing audio, not muted, and actually speaking—matching what the remote side hears. Previously you had to implement an AudioProcessor and attach it to audioCaptureProcessor to compute your own volume from captured audio; that is no longer needed.
  • SRTCEngine.activeSpeakerOptions (ActiveSpeakerOptions): includeLocal (default true; turn it off to get remote-only snapshots as before), interval (local sampling interval, default 0.5 s, read when joining a channel), and silenceThreshold (local silence threshold, default 0.01).

Changed

  • Remote and local levels share one scale, so one threshold is enough: the SDK computes your level with the same algorithm the server uses to detect speakers, and level is quantized in steps of 1/8 (0.125, 0.25, …) just like remote levels.
  • The remote level on Wangsu (CDN) channels uses a different scale now: it used to be the peak volume from receiving statistics, two to three times higher than on SeaStart channels for the same speech and not quantized; it now matches SeaStart. If you hard-coded numeric thresholds, re-check them (for example, a 0.3 “speaking loudly” threshold—the same voice now reads about 0.125–0.25). Remote speakers on Wangsu channels still only cover subscribed audio.
  • audioCaptureProcessor is still entirely yours: the SDK’s level metering runs in the same chain after your processor, so setting or clearing it doesn’t affect your own volume in the snapshot.
APIs are only added, nothing is removed or renamed, so 1.5.5 integration code compiles as is. However, the snapshot now includes you by default: if your code treats everyone in the snapshot as remote (for example, looking each uid up in the member list), distinguish yourself with isLocal or set includeLocal to false. Minimum platforms are unchanged (iOS 16 / macOS 14).SRTCBroadcastKit is 1.0.19 in this release; its code is unchanged and only the version number is bumped along with the SDK.

[1.5.5] - 2026.10.27

Added

  • Specify the track ID when creating a track: createLocalCustomVideoTrack(desc:trackId:), createLocalScreenTrack(preset:audioPreset:mode:trackId:), and, on macOS, createLocalScreenTrack(source:...:trackId:) with a capture source. Use them to keep the track ID unchanged when the same feed switches capture sources (for example, when view recording and screen sharing are published in turn). With the Wangsu CDN, the stream name is derived from the track ID, and cloud recording only pulls the stream that existed when recording started; once the ID changes, recording reports “检测到推流中断了” (stream interrupted) after about 30–45 seconds and stops. The existing track creation methods are unchanged and still generate a random ID.

Changed

  • Only one object per track ID can be published at a time: calling publishLocalTrack while another object with the same ID is still published throws invalidState instead of silently replacing it.
  • Unpublishing checks object identity: calling unpublishLocalTrack on an old object that has been replaced by a new track with the same ID returns immediately and doesn’t remove the new track that is being published.
This release only adds APIs; integration code from 1.5.4 can upgrade directly. The minimum platforms are unchanged (iOS 16 / macOS 14).SRTCBroadcastKit is 1.0.18 in this release; its code is unchanged and only the version number is bumped along with the SDK.

[1.5.4] - 2026.10.24

Fixed

  • LocalCameraTrack.isFrontCamera wasn’t updated after switching between the front and back cameras: in previous versions, switchCamera() only switched the underlying capture, and the track’s camera position stayed at the value from when the camera was turned on, so it still reported the front camera after switching to the back one. This caused three problems: front/back camera buttons that your app sets from isFrontCamera didn’t update; isMirrored stayed true, so the local preview of the back camera was mirrored as well; and unmute() after mute() (or restartCapture()) restarted capture with the stale position, so after switching to the back camera, turning the camera off and on again silently switched back to the front camera. The track state is now updated once the switch completes, and mirroring follows the camera position automatically.
  • The same write-back after changeDeviceId(_:): after switching cameras by device ID, captureOptions.deviceId and the camera position (on iOS, taken from the camera actually opened) are updated, and the mirroring state is refreshed.
This is a fix-only release with no public API changes; integration code from 1.5.3 can upgrade directly. The minimum platforms are unchanged (iOS 16 / macOS 14).SRTCBroadcastKit is 1.0.17 in this release; its code is unchanged and only the version number is bumped along with the SDK.

[1.5.3] - 2026.10.10

Added

  • Channel-level MCU composite video subscription: Channel.subscribeRemoteVideoMcuTrack() / unsubscribeRemoteVideoMcuTrack() / remoteVideoMcuTrack and RemoteVideoMcuTrack. The server-side composite task publishes the composite stream under the reserved identity __mcu__, which isn’t in the channel’s user list, so subscribeRemoteVideoTrack(uid:trackId:) can’t find it; the new methods subscribe by the reserved identity directly, and repeated calls return the same track. Receive timeouts and recoveries are reported through didChangeReceiveStreamStatus as usual, with uid set to "__mcu__". The Wangsu CDN engine is supported as well (it pulls the rtc_v_channel_{channel} stream).
New methods only; integration code from 1.5.2 can upgrade directly. The minimum platforms are unchanged (iOS 16 / macOS 14). When the composite task isn’t running, subscribing produces no video (the SDK retries for a few seconds, then gives up without throwing); subscribe again once the task is running.SRTCBroadcastKit is 1.0.16 in this release; its code is unchanged and only the version number is bumped along with the SDK.

[1.5.2] - 2026.10.10

Fixed

  • The iOS call audio session now recovers after being changed externally: while the SDK holds the call audio session, if the host app changes the session category itself (typically to .playback for background keep-alive or for playing a notification sound), the recording path stops immediately, the orange microphone indicator disappears, and turning the mic on again doesn’t bring it back, so the microphone stays silent for the rest of the call. Now, when the mic is turned on again or a channel is joined again, the SDK checks whether the category was taken over and, if so, reapplies the call configuration and restarts recording.
  • Audio route changes are no longer reported after leaving: when leaving, the SDK hands the audio session back to the system, and the system switches output from the earpiece back to the speaker; previous versions still delivered one more route-change callback, so the host showed a prompt such as “switched to speaker”. Route changes are no longer reported while the SDK isn’t holding the audio channel; the fallback after .oldDeviceUnavailable (such as unplugging headphones) still runs as before.
This is a fix-only release with no public API changes; integration code from 1.5.1 can upgrade directly. The minimum platforms are unchanged (iOS 16 / macOS 14). Host apps should avoid changing the session category while the SDK holds the audio session (AudioRouteSession.isEngaged is true); the recovery is only a safety net.SRTCBroadcastKit is 1.0.15 in this release; its code is unchanged, and only the version number is bumped along with the SDK.

[1.5.1] - 2026.10.01

Fixed

  • AudioRoute.displayName / AudioRouteTarget.displayName now return Chinese or English based on the system language: previously they always returned Chinese (扬声器, 听筒, and so on), so an app on an English system that displayed them directly showed Chinese text in an English UI. Now they return Chinese when the system’s preferred language starts with zh (zh-Hans / zh-Hant / zh-HK, and so on) and English otherwise (Speaker, Earpiece, Bluetooth headset, Wired headset, Unknown route). This text is meant for end users, so it follows only the system language and isn’t affected by SRTCEngine.language.
This is a fix-only release with no public API changes; integration code from 1.5.0 can upgrade directly. On English systems the value returned by displayName changes from Chinese to English; if your code compares it as a string (rather than checking the AudioRoute value), switch to checking the enum value. The minimum platforms are unchanged (iOS 16 / macOS 14).SRTCBroadcastKit is 1.0.14 in this release; its code is unchanged, and only the version number is bumped along with the SDK.

[1.5.0] - 2026.09.30

This release contains breaking changes: error codes are renumbered across the board according to the cross-platform unified table (version 2), and error messages are now in English. Any code that branches on the numeric value of SRTCError.code, or on the Chinese text of message / localizedDescription, needs to be updated after upgrading; code that switches on SRTCError cases isn’t affected by the numeric changes, but the scenarios in the table below that “now throw a different case” need their branches updated. Only the minor version is bumped, so projects integrated with from: "1.4.x" resolve to this release automatically; read the table below before upgrading.

Added

  • SRTCEngine.language (String?, a BCP 47 language tag such as "en" or "zh-CN"; nil follows the system language) and the read-only currentLanguage (the language actually in effect: the set value if there is one, otherwise the system’s preferred language, or "zh" if that can’t be determined). The SDK sends Accept-Language with its backend requests, and the messages of business errors returned by the backend (codes 1000–99999) come back in Chinese or English accordingly; the SDK’s own errors are always in English and aren’t affected. Like logLevel, it’s a process-wide global setting; set it before joinChannel / enableIm.
  • SRTCError.baseCode: the low 3-digit semantic code, unified across platforms (for example, 231 = no camera permission), which makes it easy to compare with Web / Android / HarmonyOS; for backend business codes it returns the code itself.
  • SRTCError implements CustomNSError: once bridged to NSError, domain = "cn.seastart.srtc" and code is the full code (for example 103231), so integrations that go through NSError, such as ObjC, uni-app, or Flutter, can check the code directly.
  • New error cases: cameraPermissionDenied (231), microphonePermissionDenied (251), screenShareDenied(_:underlying:) (039; underlying is the original system error, placed in NSUnderlyingErrorKey after bridging), invalidArgument (031), userNotFound (204), featureNotSupported (032), cameraFormatUnavailable (242), publishFailed (300), and subscribeFailed (301).
  • SRTCBroadcastKit (1.0.13 in this release): the system alert shown when the broadcast ends is now in Chinese or English based on the system language; subclasses can override SRTCBroadcastSampleHandler.finishMessage(for:) to customize the text (its parameter is the new end-reason enum SRTCBroadcastFinishReason), and the built-in Chinese and English texts are available through builtinFinishMessage(for:language:).

Changed

  • All error messages are now in English: SRTCError.message / localizedDescription (still in the format "<code>: <message>"), the parameter descriptions included in errors, the BroadcastError descriptions, and the reason of screenBroadcastDidFinish are all in English. They’re meant for developers and logs; for messages shown to end users, map code / baseCode yourself—don’t show message directly.
  • HTTP status codes are no longer folded into error codes: previously a non-200 HTTP response was reported as 103<HTTP status> (for example 103502), colliding with other low codes; now it’s always apiRequestFailed → 103006, and the HTTP status is only in the associated value statusCode and in the description.
  • Turning on the microphone without microphone permission now throws: previously capture “succeeded” but sent silence; now it throws microphonePermissionDenied (103251).
  • Heartbeats no longer leave the channel on non-200 HTTP responses / network failures: only backend business errors (codes 1000–99999, such as being removed or the session becoming invalid) leave the channel; temporary errors such as gateway 502 / 504 now keep waiting for reconnection.
  • Error codes in SRTCUniBridge callbacks are no longer -1: errors that aren’t SRTCError are normalized to 006 (network) / 026 (canceled) / 025 (internal error).

Old code → new code mapping

The iOS prefix is 103 and the macOS prefix is 105. The table below uses iOS as the example (for macOS, replace the prefix with 105). Backend business codes (1000–99999) are still passed through unchanged, with no prefix and the same values; their messages now come back in Chinese or English according to language.
No existing SRTCError case was removed and no signature changed (the new cases are binary compatible), so integration code for 1.4.7 compiles against this release as-is; what you need to check is code that branches on numeric values / Chinese message text, and switch branches that rely on the old cases in the table above. The minimum OS versions are unchanged (iOS 16 / macOS 14).SRTCBroadcastKit is 1.0.13 in this release. If you implement iOS full-screen screen sharing, the Broadcast Upload Extension target must also link SRTCBroadcastKit from this tag; otherwise the end-of-broadcast alert keeps the old text.

[1.4.7] - 2026.09.23

Fixed

  • An unknown device_type no longer makes the whole user list fail to parse: the backend adds new client types on a schedule not controlled by SDK releases, and previously, if even one device_type in the users of channel/detail fell outside this version’s enum, the whole response failed to decode and joining failed outright (reporting The data couldn't be read...)—meaning a single unfamiliar client joining could lock every older client out. DeviceType now adds unknown and the 80–89 server-side agent range (MCU/SIP/H.323/GB28181/RTSP/RTMP/file playback/stream distribution/speech transcription), and users is now parsed entry by entry, skipping any entry that can’t be decoded.
  • Subscriptions rejected individually by the SFU no longer fail silently: sfu/subscribe rejects individual tracks inside an HTTP 200 + code:0 response body (the failed field) rather than raising an error, so the outer retry never triggered, while the caller’s subscribe() had long since returned success. That subscription could never be rescued afterward: the internal registration was still in place and short-circuited resubscription, and the receive timeout is an edge event—a subscription that was never established produces no edge—so the symptom was remote video permanently stuck on the last frame or black. Now each track is retried 5 times with exponential backoff (about 6 seconds); once retries are exhausted, the internal subscription registration is revoked, handing the right to resubscribe back to your app.

Changed

  • UserInfo.deviceType has a new meaning: nil now means “this SDK doesn’t recognize this client”, not just “the remote side didn’t report it”. Code that branches on client type should treat nil as an unknown client, not as a default client type.
This is a fix-only release with no public API changes and no breaking changes; integration code from 1.4.6 can upgrade directly. The minimum platforms are unchanged (iOS 16 / macOS 14).SRTCBroadcastKit is 1.0.12 in this release; its code is unchanged, and only the version number is bumped along with the SDK.
The second fix only turns a “silent failure” into one that’s “detectable after retries and can be resubscribed”; it doesn’t fix the root cause of the SFU rejecting the subscription. If the server keeps returning not found, the subscription still fails after retries are exhausted; that’s a server-side issue, so troubleshoot it on the server side.

[1.4.6] - 2026.09.23

Fixed

  • Camera capture orientation now follows the interface orientation, and lying the device flat no longer falls back to portrait: previously, when the device lay flat on a desk (faceUp / faceDown) or the orientation was unknown, it was always treated as portrait, so in an app locked to landscape, putting the device on a desk suddenly published portrait video, and the remote side could only see it with black bars at the top and bottom in a landscape window—the “captured video switching between landscape and portrait on its own” reported by customers. Now UIWindowScene.interfaceOrientation is resolved first (it’s always landscape when the host locks landscape), falling back to the device orientation only when it’s unavailable; lying flat and unknown orientations keep the last valid orientation instead of falling back to portrait.
  • Landscape screen sharing rotated by 180°: ReplayKit’s RPVideoSampleOrientationKey gives a CGImagePropertyOrientation (describing “how to position this frame so it’s upright”), while the SDK’s internal VideoRotation describes “how many degrees clockwise the receiver should rotate”—the two go in opposite directions. Previously right / left were mapped as if in the same direction, making both landscape orientations off by 180°: when a teacher started screen sharing in landscape, students saw it upside down. The mapping is now corrected.
This is a fix-only release with no public API changes; integration code from 1.4.5 can upgrade directly.The second fix lives in SRTCBroadcastKit, which is version 1.0.11 in this release. If you implement iOS full-screen screen sharing, after upgrading confirm that your Broadcast Upload Extension target links the SRTCBroadcastKit from this tag (it’s released under the same tag as this package, so you don’t need to—and shouldn’t—specify its version separately). If the extension side is still on the old package, the orientation mapping is unchanged and shared video is still upside down.

[1.4.5] - 2026.09.18

Added

  • Remote video receive timeout / recovery detection: adds the ChannelDelegate callback channel(_:didChangeReceiveStreamStatus:) and ReceiveStreamStatus (uid / trackId / trackDesc / timedOut), plus RemoteVideoTrack.isReceiveTimedOut for querying at any time. Judged per track: after subscribing, if no frames of that video arrive for a period of time, it’s judged as timed out, and as soon as frames resume it reports again—use this to drive a “loading / remote network issue” indicator on the video. When the first frame arrives after subscribing, you first receive a timedOut == false, which you can use to hide the initial loading indicator. It corresponds to engineChannel:onReceiveStreamStatusChange:trackId:status: in the older RTCEngineKit; timedOut has the same truth value as the old status (true means timed out), so there’s no need to invert it when migrating.
  • Audio unit start/stop: adds AudioRouteSession.setAudioModuleEnabled(_:) and isAudioModuleEnabled (iOS). For local-only playback scenarios such as recorded live classes, you can stop the VoIP voice processing unit so it doesn’t lower AVPlayer playback volume.
While setAudioModuleEnabled(false) is in effect, call audio can’t be received or sent. You must set it back to true after local playback ends; otherwise the rest of the session is silent. The only case where you don’t need to clean up yourself is rejoining: each time the audio path is occupied for the first time (joining / starting capture), it’s automatically reset to true, so a manually disabled state from a previous session doesn’t leak across sessions—consistent with the older RTCEngineKit setting enabledAudioModule:YES on joining.
Don’t use didChangeConnectionQuality in place of receive timeout detection. The quality level describes “whether the network is good” for the whole link, not “whether this video has stopped”: when a single track stops being published, the sender’s camera freezes, or one video fails to decode, the link level can stay excellent the whole time; conversely, when the network jitters and the level drops, several videos may actually still be producing frames normally.This release only adds public APIs; the protocol methods have default empty implementations, there are no breaking changes, and integration code from 1.4.4 can upgrade directly. SRTCBroadcastKit is 1.0.10 in this release; its code is unchanged, and only the version number is bumped along with the SDK.

[1.4.4] - 2026.09.15

Changed

  • Shared video streams from view recording on Wangsu (CDN) now carry microphone-recorded audio, just like standard screen sharing; SRTCBroadcastKit is upgraded to 1.0.9.
  • The audio recording pipeline is kept warmed up to avoid reduced playback volume: audio device initialization and playback path switches no longer interrupt the recording pipeline unexpectedly.

[1.4.3] - 2026.09.14

Added

  • Screen-sharing streams in Wangsu (CDN) channels now carry audio, so cloud recordings are no longer silent: Wangsu’s cloud recording pulls whole streams by stream name, and previously screen-sharing streams contained only video, so recorded sharing segments had no sound. Now, when screen sharing is published, an opus audio track (capped at 32 kbps) is added on the same publishing connection, with no changes needed in your code. This audio is visible only to CDN recording—it isn’t reported in signaling and can’t be negotiated on the subscribing side, so remote users don’t get an extra audio track, and subscription logic and callbacks are completely unaffected.
This audio comes from the same local mixed output as the microphone and has no separate switch: when no microphone track is published, or LocalMicTrack.mute() has been called, the hardware microphone is muted at the audio device module level, so the mixed data contains no voice, and neither does the recorded audio—“if the microphone isn’t on, you won’t be recorded”. On macOS, when only screen audio is shared, only the screen sound is recorded.Wangsu (CDN) engine only; recording in SeaStart (SFU) channels is mixed per track by the server and isn’t affected by this change.

Fixed

  • After unpublishing audio failed, the remote side showed the microphone as on but heard nothing: when turning off the microphone, the SDK has to unpublish the internal mixed audio track, which makes an HTTP request that can fail on network jitter (observed as NSURLError -1005). Previously the SDK cleared the track handle before the request was sent and didn’t roll back on failure—the track still existed on the server, so the next time the microphone was turned on, a second audio track was created, and the remote side often ended up subscribed to the old stream that no longer had any data. Now the handle is released only after unpublishing succeeds, so failures self-heal: the next time the microphone is turned on, the existing track is correctly reused and no second track is created.
SRTCBroadcastKit is 1.0.8 in this release; its code is unchanged, and only the version number is bumped along with the SDK.

[1.4.2] - 2026.09.12

Added

  • Full-display sharing on macOS supports excluding windows: createLocalScreenTrack(source:preset:audioPreset:) adds two parameters with default values, excludedWindowIds and excludesCurrentApplication, and ScreenCaptureOptions adds properties with the same names. The values of excludedWindowIds are UInt32(NSWindow.windowNumber), meaningful only when sharing an entire display (ignored when capturing a single window); the list is snapshotted once at startCapture(), and windows opened afterward all appear in the capture. Both parameters have default values, so existing call sites remain source-compatible.

Changed

  • Full-display sharing on macOS now includes your own app’s windows by default: previously the SDK cut all of the process’s windows out of the capture, so “when sharing the full display, the remote side couldn’t see your own app windows”—this wasn’t a system limitation but something the SDK excluded on its own. It now includes them by default, consistent with Zoom / Tencent Meeting, and you specify windows to cut out one by one with excludedWindowIds.
  • The default value of ScreenCaptureSources.availableWindows(includeCurrentApp:) changes from false to true, so your own windows can appear in the list as single-window sharing sources.
Now that your own windows are included, any window that’s rendering this shared content creates an infinite mirror (the sharing preview window in your UI, or the in-call window rendering the remote screen share when testing with two instances on one machine). Put these windows’ IDs into excludedWindowIds to cut them out one by one—don’t exclude the entire app for this. If you really need the old behavior, set excludesCurrentApplication to true (excludedWindowIds is then ignored).

Fixed

  • The microphone was sent along when sharing only screen audio: in mix mode all audio sources share one capture stream, and whether to mix in the microphone used to be decided by the volume of a mixing node—but that node actually had no input, so changing its volume had no effect on the hardware microphone. As a result, when your app hadn’t published a microphone track and was sharing only screen audio, the remote side could still hear local ambient sound. Now the hardware microphone is muted directly at the audio device module level (muted by default, unmuted only when a microphone track is published or LocalMicTrack.unmute() is called), and sound from screen audio and custom audio injection is unaffected.
  • With the same root cause, LocalMicTrack.mute() on macOS was previously a no-op (the remote side could still hear you after calling it); it now actually takes effect.
SRTCBroadcastKit is 1.0.7 in this release; its code is unchanged, and only the version number is bumped along with the SDK.

[1.4.1] - 2026.09.11

Fixed

  • ChannelDelegate.didChangeActiveSpeakers never fired in Wangsu (CDN) channels: active speaker data used to exist only on the SeaStart (SFU) engine (sent by the server over the signaling channel), and the CDN path has no such channel, so the same public callback never fired in Wangsu channels, and volume bars and speaker indicators your app drew from it failed silently without any error. Now the CDN side samples local WebRTC standard statistics (audioLevel of inbound-rtp) every 500 ms and produces exactly the same ActiveSpeakersSnapshot as the SFU, so both engines behave the same externally, with no changes needed in your code.
The CDN architecture has no server-side control plane, so speakers can only be derived from local statistics, which gives two inherent differences compared with SeaStart: it can only reflect subscribed audio streams (users you haven’t subscribed to can’t be detected), and its accuracy and timeliness are slightly lower than the server’s judgment. SeaStart still uses the server-delivered path and isn’t affected by this change.ActiveSpeakersSnapshot contains only remote speakers, not yourself, on both engines. If you need your own volume, compute it yourself from the captured PCM with SRTCEngine.audioCaptureProcessor.SRTCBroadcastKit is 1.0.6 in this release; its code is unchanged, and only the version number is bumped along with the SDK.

[1.4.0] - 2026.09.09

Added

  • Virtual background: runs person segmentation in the camera capture pipeline and replaces everything outside the person with a blur or a specified image; installing it doesn’t require a license key. SRTCEngine adds installVirtualBackground(modelPath:), uninstallVirtualBackground(), enableVirtualBackground(_:), isVirtualBackgroundEnabled, setVirtualBackgroundBlur(level:), setVirtualBackgroundImage(_:), setVirtualBackgroundInferenceInterval(_:), setVirtualBackgroundMaskSync(_:), and the instance accessor virtualBackground (read-only state for diagnostics and droppedFrameCount). The accompanying new types are SRTCVirtualBackground, SRTCVirtualBackgroundEffect, and SRTCNativeImage—see Virtual background for details;
    • Once enabled, it automatically applies to all camera tracks (including those created after enabling), with no need to add anything to videoProcessors;
    • There’s a single process-wide state, so you don’t need to resend the configuration after switching between the front and back cameras / switching camera devices;
    • When segmentation fails or the output buffer pool is exhausted, it drops the frame rather than sending the unprocessed raw video (to avoid flashing the real background to the remote side); see virtualBackground.droppedFrameCount for the dropped-frame count.
  • SRTCEngine adds defaultVideoProcessors: configure the video processor pipeline once, and camera tracks created afterward pick it up automatically (a camera track is created anew every time the camera is turned on, so setting processors only on the track loses them).
  • SRTCError adds four values: virtualBackgroundAlreadyInstalled, virtualBackgroundNotInstalled, virtualBackgroundModelNotFound(String), and virtualBackgroundSessionFailed(String).
The minimum system requirements are raised to iOS 16.0 / macOS 14.0 (previously iOS 13.0 / macOS 10.15). This is a breaking change: projects below these minimums can’t resolve this version or later, and what you get is a dependency resolution failure, not a compile error. The minimums are dictated by the inference runtime used for virtual background; SwiftPM’s platforms: applies to the whole package and has no per-target minimum, so there’s no way to apply this requirement to virtual background alone.
SRTCError is a non-frozen public enum; if you’ve written an exhaustive switch over it, add an @unknown default branch to compile.SRTCBroadcastKit is 1.0.5 in this release; its code is unchanged, and only the version number is bumped along with the SDK. It doesn’t include onnxruntime (the Broadcast Upload Extension process has a 50 MB memory limit).

[1.3.3] - 2026.09.07

Fixed

  • DegradationPreference now actually takes effect: when publishing video, it’s passed down to the underlying encoder, which downgrades resolution or frame rate as configured on a poor network (previously this setting was ignored).

Changed

  • Camera and screen-sharing presets are unified to maintainResolution (prioritize sharpness, lower the frame rate when necessary); previously the presets used inconsistent values. Text-heavy scenarios such as sharing documents and presentations are noticeably sharper as a result.

Added

  • macOS DeviceManager adds setSystemDefaultOutputDevice(_:), which switches the system default audio output device directly (aligned with the Windows behavior).
SRTCBroadcastKit is 1.0.4 in this release; its code is unchanged, and only the version number is bumped along with the SDK.

[1.3.2] - 2026.09.07

Fixed

  • Fixed a crash caused by JSONSerialization throwing an ObjC exception when content in an mqtt message was null (NSNull is now filtered uniformly when reading values).
1.3.1 doesn’t include this crash fix. If you’ve integrated 1.3.1, upgrade directly to 1.3.2.
SRTCBroadcastKit is 1.0.3 in this release; its code is unchanged, and only the version number is bumped along with the SDK.

[1.3.1] - 2026.09.07

Added

  • DeviceType adds harmonyOS (value 8), for identifying users who join from HarmonyOS.
DeviceType is a non-frozen public enum; if you’ve written an exhaustive switch over it, add an @unknown default branch to compile.SRTCBroadcastKit is 1.0.2 in this release; its code is unchanged, and only the version number is bumped along with the SDK.

[1.3.0] - 2026.08.20

Added

  • iOS audio routing: adds AudioRouteSession.shared, which manages the iOS audio session and output route in one place. The accompanying new types are AudioRoute (the current route, read-only with five states, including Bluetooth / wired headphones), AudioRouteTarget (switchable target, two states: speaker / receiver), AudioRouteInfo, and AudioCallState, plus the event protocol AudioRouteSessionDelegate (route change / session interruption / interruption recovery / system call state).
    • Persistent setting defaultAudioRoute: set before joining whether to use the speaker or the receiver by default; it stays in effect, and fallback after an external device is unplugged follows it;
    • Temporary setting setAudioRoute(_:) / clearAudioRouteOverride(): switch temporarily during a call, with higher priority than the persistent setting;
    • External devices (Bluetooth / wired) are taken over by the system; the SDK only reports them and doesn’t switch to them actively—iOS has no reliable way to target a specific external device, so when the user needs to choose one, use the system’s AVRoutePickerView.
  • DeviceManager adds isSpeakerOutputPreferred, for querying whether speaker output is currently in use.

Changed

  • On iOS, joining a channel sets up the call audio path and keeps it until you leave; “whether the microphone is on” only decides whether to publish and no longer affects whether underlying audio capture is running. This is the prerequisite for switching between receiver / speaker even without turning on the microphone.
  • The semantics of DeviceManager.setSpeakerOutputPreferred(_:) are aligned with mainstream RTC SDKs: true switches to the speaker, false switches to the receiver (previously false meant “drop the override and return to the system default”, with unpredictable results). The method signature is unchanged, so callers need no changes.
On iOS, joining a channel requests microphone permission, even if the user only intends to listen. Make sure Info.plist contains NSMicrophoneUsageDescription; otherwise the app crashes.While in a channel, the iOS status bar shows an orange microphone indicator dot. This is inherent to the .playAndRecord session category (consistent with Zoom, Tencent Meeting, and others), not extra recording by the SDK.If the user denies microphone permission, the SDK degrades to playback only: the user can still hear others, but the receiver route isn’t available.
SRTCBroadcastKit is 1.0.1 in this release; its code is unchanged, and only the version number is bumped along with the SDK.

[1.2.0] - 2026.08.19

Breaking changes

  • Signaling-related values in the error enum are renamed from mqtt* to signaling* (signalingConnectFailed / signalingSubscribeFailed), so signaling implementation details are no longer exposed. Code that catches the old values needs to be renamed; the meaning of the values is unchanged.
This is a minor version, so from: "1.1.0" resolves to 1.2.0 automatically. If your code catches mqtt* values, rename them to signaling* after upgrading; otherwise it won’t compile.

Added

  • iOS full-screen screen sharing: createLocalScreenTrack(mode:) adds a capture mode parameter; .broadcast(appGroup:) captures the entire system screen based on a ReplayKit Broadcast Upload Extension, while the existing in-app capture is the default .inApp with unchanged behavior. Also added:
    • The SRTCBroadcastKit product (used on the extension side, without WebRTC) and the base class SRTCBroadcastSampleHandler; your extension only needs class SampleHandler: SRTCBroadcastSampleHandler {};
    • Wrappers for the system broadcast picker: SRTCBroadcastPicker (SwiftUI) / SRTCBroadcastPickerView (UIKit);
    • TrackDelegate adds screenBroadcastDidStart(_:) and screenBroadcastDidFinish(_:reason:), for detecting when the user starts / stops the broadcast from the system UI;
    • LocalScreenTrack adds captureMode and isBroadcastActive (isCapturing only means listening is ready; to display a “sharing” state, check isBroadcastActive).
  • Multi-channel: one SRTCEngine can join multiple channels at the same time. Adds channels, defaultChannel, and leaveChannel(_:); tracks are engine-level objects that can be published to multiple channels, and capture release follows “the last releaser is responsible”.

Changed

  • How publishing audio to multiple channels is validated: changed from the exclusive restriction “only one channel may publish audio at a time” to “every channel publishing audio must hold exactly the same set of audio sources”, which allows the most common case of “each channel publishing one microphone”. When the sets differ, publishLocalTrack throws invalidState to prevent cross-channel audio leakage; the subscribing side isn’t restricted.

Fixed

  • iOS camera capture now uses an AVCaptureSession created by the SDK itself, fixing capture failing silently on some real devices so that the remote side couldn’t see video.
SRTCBroadcastKit has its own version numbering and is 1.0.0 in this release. It’s released under the same tag as the SDK and always matches it, so you don’t need to specify its version separately when integrating.

[1.1.0] - 2026.08.02

Added

  • Adds the video frame rotation enum VideoRotation, with values ._0/._90/._180/._270; the raw value is the angle.

Changed

  • The type of the rotation parameter of LocalVideoTrack.pushFrame(_:rotation:timestampNs:) and of VideoFrame.rotation changes from the underlying WebRTC type to VideoRotation;
  • Track.rtcTrack is no longer public. To detect when a track has finished binding to its underlying media object, use the trackDidBindRtcTrack event instead;
  • The public API no longer exposes any underlying WebRTC types, so you don’t need to import any WebRTC-related modules.

[1.0.0] - 2026.08.02

Added

  • First official release, distributed via Swift Package Manager as a prebuilt XCFramework containing slices for three platforms: iOS devices, the iOS Simulator, and macOS;
  • The SDK’s main entry class is SRTCEngine.