diff --git a/.changes/android-kgp-warning-builtin-kotlin b/.changes/android-kgp-warning-builtin-kotlin deleted file mode 100644 index 260d04a48..000000000 --- a/.changes/android-kgp-warning-builtin-kotlin +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "Apply kotlin-android through pluginManager on Android so Flutter no longer warns that livekit_client applies the Kotlin Gradle Plugin when built-in Kotlin is active" diff --git a/.changes/buffer-wait-typed-error b/.changes/buffer-wait-typed-error deleted file mode 100644 index a83e7896e..000000000 --- a/.changes/buffer-wait-typed-error +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "Data stream writes on a closed engine fail with UnexpectedConnectionState instead of a plain string error" \ No newline at end of file diff --git a/.changes/bump-livekit-ffi-0.13.2 b/.changes/bump-livekit-ffi-0.13.2 deleted file mode 100644 index 2665cef28..000000000 --- a/.changes/bump-livekit-ffi-0.13.2 +++ /dev/null @@ -1 +0,0 @@ -patch type="changed" "Require livekit_ffi 0.13.2, whose libwebrtc no longer bundles the compromised eMudhra cross-signed AAA Certificate Services root" diff --git a/.changes/bump-livekit-ffi-0.15.0 b/.changes/bump-livekit-ffi-0.15.0 deleted file mode 100644 index 533af43fe..000000000 --- a/.changes/bump-livekit-ffi-0.15.0 +++ /dev/null @@ -1 +0,0 @@ -patch type="changed" "Require livekit_ffi 0.15.0, whose Dart bindings no longer leak the byte and string payloads that cross to the Rust core" \ No newline at end of file diff --git a/.changes/darwin-webrtc-plugin-instance b/.changes/darwin-webrtc-plugin-instance deleted file mode 100644 index 2fed0de7c..000000000 --- a/.changes/darwin-webrtc-plugin-instance +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "iOS/macOS: audio device module and local track calls act on the calling Flutter engine's WebRTC instance when more than one engine initializes WebRTC" \ No newline at end of file diff --git a/.changes/data-channel-buffer-wait b/.changes/data-channel-buffer-wait deleted file mode 100644 index d0388efaf..000000000 --- a/.changes/data-channel-buffer-wait +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "Fix data stream writes that could hang after a full reconnect, carried on after the room disconnected, or leaked a listener while waiting for the send buffer to drain. Writes now also wait for a reconnect to finish" diff --git a/.changes/data-received-participant-identity b/.changes/data-received-participant-identity deleted file mode 100644 index 4312bc745..000000000 --- a/.changes/data-received-participant-identity +++ /dev/null @@ -1 +0,0 @@ -patch type="added" "`DataReceivedEvent.participantIdentity` reports the sender even when `participant` is null, for example when data arrives before the sender's join is announced or after the sender has left" diff --git a/.changes/data-stream-error-livekit-exception b/.changes/data-stream-error-livekit-exception deleted file mode 100644 index 8847e9fd8..000000000 --- a/.changes/data-stream-error-livekit-exception +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "`DataStreamError` is now a `LiveKitException`, so `on LiveKitException` also catches data stream failures, such as a write cut off by disposing the room" diff --git a/.changes/data-stream-options b/.changes/data-stream-options deleted file mode 100644 index 08695e2c9..000000000 --- a/.changes/data-stream-options +++ /dev/null @@ -1 +0,0 @@ -minor type="added" "ConnectOptions.dataStream with maxPayloadByteLength, bounding the payload a single incoming data stream may deliver" diff --git a/.changes/data-stream-send-after-delivery b/.changes/data-stream-send-after-delivery deleted file mode 100644 index 618715c3d..000000000 --- a/.changes/data-stream-send-after-delivery +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "A data stream send completes once its packets are handed to the data channel, so a failed send throws and a large send no longer buffers the whole payload in memory" \ No newline at end of file diff --git a/.changes/data-streams-v2 b/.changes/data-streams-v2 deleted file mode 100644 index 4e715a884..000000000 --- a/.changes/data-streams-v2 +++ /dev/null @@ -1 +0,0 @@ -minor type="changed" "Data streams are now backed by the Rust core (livekit-ffi) on native platforms, adding data streams v2: single-packet inline sends, deflate-raw compression and MTU-bounded headers. Adds LocalParticipant.sendBytes, a compress option, Participant.capabilities and ClientProtocolVersion.v2. Web keeps the existing Dart implementation and interoperates as a pre-v2 peer." diff --git a/.changes/deferred-offer-lost b/.changes/deferred-offer-lost deleted file mode 100644 index f6f0000c3..000000000 --- a/.changes/deferred-offer-lost +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "A track published right after another one is no longer left unpublished. Its offer was dropped when the request arrived while the answer to the previous offer was being applied, for example a microphone enabled right after the camera" diff --git a/.changes/disconnect-during-full-reconnect b/.changes/disconnect-during-full-reconnect deleted file mode 100644 index e41c8935b..000000000 --- a/.changes/disconnect-during-full-reconnect +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "Calling disconnect() while a full reconnect is in progress no longer reconnects the room and joins again with the old token" \ No newline at end of file diff --git a/.changes/e2ee-shared-key-index b/.changes/e2ee-shared-key-index deleted file mode 100644 index f0a83d1e7..000000000 --- a/.changes/e2ee-shared-key-index +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "In shared-key E2EE mode, newly published tracks and encrypted data packets now use the key index passed to `setSharedKey` instead of always starting at index 0, which made them unreadable to other participants when the key lived at another index" diff --git a/.changes/engine-terminal-closure b/.changes/engine-terminal-closure deleted file mode 100644 index 3c70ce924..000000000 --- a/.changes/engine-terminal-closure +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "Fix a room that rejoined after being disposed while a full reconnect was tearing down, and fail data stream writes started after the room was disposed" diff --git a/.changes/fix-audio-red-inverted b/.changes/fix-audio-red-inverted deleted file mode 100644 index 7fc019a66..000000000 --- a/.changes/fix-audio-red-inverted +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "Audio tracks now publish with RED (redundant audio data) enabled by default as documented. AudioPublishOptions.red was inverted, so the default red: true disabled RED and red: false enabled it. Apps that set red: false to get RED working should remove it" diff --git a/.changes/flutter-3.50-material-import b/.changes/flutter-3.50-material-import deleted file mode 100644 index e0f9f6520..000000000 --- a/.changes/flutter-3.50-material-import +++ /dev/null @@ -1 +0,0 @@ -patch type="changed" "Import package:flutter/widgets.dart instead of the deprecated package:flutter/material.dart wherever Material is not used, so the package analyzes cleanly on Flutter 3.50" diff --git a/.changes/ignore-duplicate-answer b/.changes/ignore-duplicate-answer deleted file mode 100644 index 5cdef4a96..000000000 --- a/.changes/ignore-duplicate-answer +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "A duplicated server answer is now ignored instead of being applied a second time, which failed on the peer connection and re-ran the transport's post-answer work for a message that should have been dropped" diff --git a/.changes/ios-quiet-remote-audio-while-capturing b/.changes/ios-quiet-remote-audio-while-capturing deleted file mode 100644 index c9c2a57d2..000000000 --- a/.changes/ios-quiet-remote-audio-while-capturing +++ /dev/null @@ -1 +0,0 @@ -minor type="fixed" "iOS: remote audio no longer has to drop to the device's call volume as soon as local capture starts. iOS applies a reduced, call-tuned output gain while the audio session runs a chat mode (`videoChat`/`voiceChat`), which Apple's Voice Processing I/O compensates for; without VPIO there is nothing to compensate, so a capture that resolves to WebRTC software voice processing now gets `playAndRecord` with the `default` mode and keeps media loudness. The new `AudioManager.setPlatformVoiceProcessingAllowed` guarantees Voice Processing I/O is never used, which is what lets the `default` mode stick — iOS rewrites the mode back to `voiceChat` whenever VPIO is instantiated, so a session mode alone cannot avoid the call-tuned gain. In automatic mode `playAndRecord` is additionally kept across mute toggles until the engine stops, instead of flipping back to `playback` on every mute: that flip moved playback between iOS's media and call volume registers (audible as a loud-then-quiet jump) and tore down echo cancellation mid-call. `LiveKitClient.initialize(bypassVoiceProcessing: true)` now also tells the audio device module to drop processing, matching what it already does to the `getUserMedia` constraints; previously it left Apple voice processing requested, so the session kept a chat mode whose call-tuned gain had nothing left to compensate it and remote audio became close to inaudible. The automatic speaker policy now also sets `defaultToSpeaker`, which the `default` mode needs to stay on the speaker" diff --git a/.changes/jwt-video-grant-claim-names b/.changes/jwt-video-grant-claim-names deleted file mode 100644 index 46781ddf9..000000000 --- a/.changes/jwt-video-grant-claim-names +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "`LiveKitVideoGrant` now reads the camelCase keys of the `video` claim (`roomJoin`, `canPublish`, and so on), so `TokenSourceResponse.jwtPayload?.video` returns the grants of a real LiveKit token instead of null fields" diff --git a/.changes/keep-processor-across-restart b/.changes/keep-processor-across-restart deleted file mode 100644 index 22d050784..000000000 --- a/.changes/keep-processor-across-restart +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "A track processor now stays attached across mute and unmute with the default stop-on-mute capture options, and across restartTrack such as a camera switch, instead of being silently dropped. It is restarted on the new media track, and the sender carries its processed track when it has one" \ No newline at end of file diff --git a/.changes/logging-level-setters b/.changes/logging-level-setters deleted file mode 100644 index c74bfb63d..000000000 --- a/.changes/logging-level-setters +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "`setLoggingLevel` and `disableLogging` no longer throw `UnsupportedError` in an app that has not turned on `hierarchicalLoggingEnabled` itself. They now turn it on, so the SDK logger can have a level of its own. Loggers without their own level keep following `Logger.root`" diff --git a/.changes/participant-update-races b/.changes/participant-update-races deleted file mode 100644 index af1f843a6..000000000 --- a/.changes/participant-update-races +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "Fix remote tracks going missing and duplicate participants when participant updates arrive back to back or out of order" diff --git a/.changes/preconnect-audio-survives-failover b/.changes/preconnect-audio-survives-failover deleted file mode 100644 index 6583392a4..000000000 --- a/.changes/preconnect-audio-survives-failover +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "Keep the pre-connect audio buffer recording through a region failover on connect, so the microphone is still published when the first attempt is rejected (for example by a region-pinned LiveKit Cloud project)" diff --git a/.changes/reconnect-delay-jitter b/.changes/reconnect-delay-jitter deleted file mode 100644 index 04f98c97f..000000000 --- a/.changes/reconnect-delay-jitter +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "Reconnect delays now carry proportional jitter, so clients disconnected by the same event no longer retry in lockstep. The first retry draws from a small random window instead of firing immediately, and later retries are scaled by a random factor between 0.5 and 1.5" diff --git a/.changes/redact-access-token-in-signal-url-log b/.changes/redact-access-token-in-signal-url-log deleted file mode 100644 index 747252ad4..000000000 --- a/.changes/redact-access-token-in-signal-url-log +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "The signalling URL is no longer logged with the access token in it. On web the token is carried as a query parameter, because browsers cannot set headers on a WebSocket, and the whole URL was logged at FINE level — so an app that enabled FINE logging, or forwarded SDK logs, wrote a usable access token to its logs. The token is now masked in that log line, matching the JS SDK; the remaining query parameters are still logged" diff --git a/.changes/redact-refreshed-token-in-event-log b/.changes/redact-refreshed-token-in-event-log deleted file mode 100644 index 08b0565df..000000000 --- a/.changes/redact-refreshed-token-in-event-log +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "The access token the server refreshes during a session is no longer written to the log. The internal event that carries it printed the token, and every emitted event is logged at FINEST level, so an app that enabled the most verbose logging or forwarded SDK logs wrote a usable token to its logs" diff --git a/.changes/refresh-subscribed-codecs-after-publisher-answer b/.changes/refresh-subscribed-codecs-after-publisher-answer deleted file mode 100644 index 59f8ba65d..000000000 --- a/.changes/refresh-subscribed-codecs-after-publisher-answer +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "The last subscribed codecs are now re-applied to the local video senders after each publisher renegotiation, so simulcast layers that dynacast paused are no longer re-enabled by the SFU answer" diff --git a/.changes/reliable-sends-full-reconnect b/.changes/reliable-sends-full-reconnect deleted file mode 100644 index 543e25642..000000000 --- a/.changes/reliable-sends-full-reconnect +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "Reliable data sent during a reconnect now goes out once the reconnect finishes, instead of being reported as sent and dropped. Such sends wait for the reconnect and fail with UnexpectedConnectionState if the room disconnects instead" diff --git a/.changes/rpc-error-truncation-byte-length b/.changes/rpc-error-truncation-byte-length deleted file mode 100644 index 0f187a9a0..000000000 --- a/.changes/rpc-error-truncation-byte-length +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "RPC error `message` and `data` are now truncated by UTF-8 byte length rather than by UTF-16 code unit count, so the 15 KB cap actually bounds the packet and a truncated field no longer ends in half a surrogate pair" diff --git a/.changes/send-during-dispose b/.changes/send-during-dispose deleted file mode 100644 index dc5cc9f75..000000000 --- a/.changes/send-during-dispose +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "A data packet in flight when the room is disposed no longer fails with a PlatformException from the closed data channel. The send completes when the packet went out and fails with UnexpectedConnectionState when it did not" diff --git a/.changes/stale-participant-sid b/.changes/stale-participant-sid deleted file mode 100644 index 08c80ff7b..000000000 --- a/.changes/stale-participant-sid +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "Stop resolving a remote participant by its old sid after another session takes over its identity" diff --git a/.changes/stream-packet-after-close b/.changes/stream-packet-after-close deleted file mode 100644 index 968ec0e29..000000000 --- a/.changes/stream-packet-after-close +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "A data stream packet that arrives after the room closed no longer opens a stream that nothing finishes or fails" diff --git a/.changes/stream-writer-close b/.changes/stream-writer-close deleted file mode 100644 index a72ff2d8e..000000000 --- a/.changes/stream-writer-close +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "Closing a data stream writer more than once ends the stream once instead of sending another trailer, and a write after close fails with DataStreamErrorReason.AlreadyClosed instead of sending a chunk after the stream ended" diff --git a/.changes/uniffi-rust-core-dev-wiring b/.changes/uniffi-rust-core-dev-wiring deleted file mode 100644 index 1ddb01c27..000000000 --- a/.changes/uniffi-rust-core-dev-wiring +++ /dev/null @@ -1 +0,0 @@ -minor type="added" "Wire in the livekit_ffi Rust core behind a native-only facade, delivered as a bundled cdylib via Native Assets" diff --git a/.changes/validate-region-urls b/.changes/validate-region-urls deleted file mode 100644 index e5288bc6d..000000000 --- a/.changes/validate-region-urls +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "Region URLs returned by region discovery are now validated before the SDK fails over to them. Only encrypted (`wss`/`https`) LiveKit Cloud URLs are accepted, and the check is applied to both sources of a region list: the `/settings/regions` response and the regions the server reports over signalling. `isCloudUrl` also now matches the Cloud domains on the host suffix rather than with `contains`, so a host such as `project.livekit.cloud.example.com` is no longer treated as LiveKit Cloud" diff --git a/.changes/web-video-renderer-lifecycle b/.changes/web-video-renderer-lifecycle deleted file mode 100644 index 953fbbe83..000000000 --- a/.changes/web-video-renderer-lifecycle +++ /dev/null @@ -1 +0,0 @@ -patch type="fixed" "Prevent stale video renderer attachments and listener leaks during async initialization, track changes, and disposal" diff --git a/.version b/.version index 94f15e9cc..edcfe40d1 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -2.13.1 +2.14.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index ebe6141f1..f05b1ae29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,44 @@ # CHANGELOG +## 2.14.0 + +* Added: Wire in the livekit_ffi Rust core behind a native-only facade, delivered as a bundled cdylib via Native Assets +* Added: ConnectOptions.dataStream with maxPayloadByteLength, bounding the payload a single incoming data stream may deliver +* Added: `DataReceivedEvent.participantIdentity` reports the sender even when `participant` is null, for example when data arrives before the sender's join is announced or after the sender has left +* Changed: Require livekit_ffi 0.15.0, whose Dart bindings no longer leak the byte and string payloads that cross to the Rust core +* Changed: Import package:flutter/widgets.dart instead of the deprecated package:flutter/material.dart wherever Material is not used, so the package analyzes cleanly on Flutter 3.50 +* Changed: Data streams are now backed by the Rust core (livekit-ffi) on native platforms, adding data streams v2: single-packet inline sends, deflate-raw compression and MTU-bounded headers. Adds LocalParticipant.sendBytes, a compress option, Participant.capabilities and ClientProtocolVersion.v2. Web keeps the existing Dart implementation and interoperates as a pre-v2 peer. +* Fixed: The signalling URL is no longer logged with the access token in it. On web the token is carried as a query parameter, because browsers cannot set headers on a WebSocket, and the whole URL was logged at FINE level — so an app that enabled FINE logging, or forwarded SDK logs, wrote a usable access token to its logs. The token is now masked in that log line, matching the JS SDK; the remaining query parameters are still logged +* Fixed: A data stream send completes once its packets are handed to the data channel, so a failed send throws and a large send no longer buffers the whole payload in memory +* Fixed: Prevent stale video renderer attachments and listener leaks during async initialization, track changes, and disposal +* Fixed: Audio tracks now publish with RED (redundant audio data) enabled by default as documented. AudioPublishOptions.red was inverted, so the default red: true disabled RED and red: false enabled it. Apps that set red: false to get RED working should remove it +* Fixed: Fix a room that rejoined after being disposed while a full reconnect was tearing down, and fail data stream writes started after the room was disposed +* Fixed: RPC error `message` and `data` are now truncated by UTF-8 byte length rather than by UTF-16 code unit count, so the 15 KB cap actually bounds the packet and a truncated field no longer ends in half a surrogate pair +* Fixed: Calling disconnect() while a full reconnect is in progress no longer reconnects the room and joins again with the old token +* Fixed: Closing a data stream writer more than once ends the stream once instead of sending another trailer, and a write after close fails with DataStreamErrorReason.AlreadyClosed instead of sending a chunk after the stream ended +* Fixed: iOS: remote audio no longer has to drop to the device's call volume as soon as local capture starts. iOS applies a reduced, call-tuned output gain while the audio session runs a chat mode (`videoChat`/`voiceChat`), which Apple's Voice Processing I/O compensates for; without VPIO there is nothing to compensate, so a capture that resolves to WebRTC software voice processing now gets `playAndRecord` with the `default` mode and keeps media loudness. The new `AudioManager.setPlatformVoiceProcessingAllowed` guarantees Voice Processing I/O is never used, which is what lets the `default` mode stick — iOS rewrites the mode back to `voiceChat` whenever VPIO is instantiated, so a session mode alone cannot avoid the call-tuned gain. In automatic mode `playAndRecord` is additionally kept across mute toggles until the engine stops, instead of flipping back to `playback` on every mute: that flip moved playback between iOS's media and call volume registers (audible as a loud-then-quiet jump) and tore down echo cancellation mid-call. `LiveKitClient.initialize(bypassVoiceProcessing: true)` now also tells the audio device module to drop processing, matching what it already does to the `getUserMedia` constraints; previously it left Apple voice processing requested, so the session kept a chat mode whose call-tuned gain had nothing left to compensate it and remote audio became close to inaudible. The automatic speaker policy now also sets `defaultToSpeaker`, which the `default` mode needs to stay on the speaker +* Fixed: Reliable data sent during a reconnect now goes out once the reconnect finishes, instead of being reported as sent and dropped. Such sends wait for the reconnect and fail with UnexpectedConnectionState if the room disconnects instead +* Fixed: A duplicated server answer is now ignored instead of being applied a second time, which failed on the peer connection and re-ran the transport's post-answer work for a message that should have been dropped +* Fixed: Keep the pre-connect audio buffer recording through a region failover on connect, so the microphone is still published when the first attempt is rejected (for example by a region-pinned LiveKit Cloud project) +* Fixed: `setLoggingLevel` and `disableLogging` no longer throw `UnsupportedError` in an app that has not turned on `hierarchicalLoggingEnabled` itself. They now turn it on, so the SDK logger can have a level of its own. Loggers without their own level keep following `Logger.root` +* Fixed: Apply kotlin-android through pluginManager on Android so Flutter no longer warns that livekit_client applies the Kotlin Gradle Plugin when built-in Kotlin is active +* Fixed: The access token the server refreshes during a session is no longer written to the log. The internal event that carries it printed the token, and every emitted event is logged at FINEST level, so an app that enabled the most verbose logging or forwarded SDK logs wrote a usable token to its logs +* Fixed: A data stream packet that arrives after the room closed no longer opens a stream that nothing finishes or fails +* Fixed: iOS/macOS: audio device module and local track calls act on the calling Flutter engine's WebRTC instance when more than one engine initializes WebRTC +* Fixed: In shared-key E2EE mode, newly published tracks and encrypted data packets now use the key index passed to `setSharedKey` instead of always starting at index 0, which made them unreadable to other participants when the key lived at another index +* Fixed: Region URLs returned by region discovery are now validated before the SDK fails over to them. Only encrypted (`wss`/`https`) LiveKit Cloud URLs are accepted, and the check is applied to both sources of a region list: the `/settings/regions` response and the regions the server reports over signalling. `isCloudUrl` also now matches the Cloud domains on the host suffix rather than with `contains`, so a host such as `project.livekit.cloud.example.com` is no longer treated as LiveKit Cloud +* Fixed: A track published right after another one is no longer left unpublished. Its offer was dropped when the request arrived while the answer to the previous offer was being applied, for example a microphone enabled right after the camera +* Fixed: Stop resolving a remote participant by its old sid after another session takes over its identity +* Fixed: Fix remote tracks going missing and duplicate participants when participant updates arrive back to back or out of order +* Fixed: `DataStreamError` is now a `LiveKitException`, so `on LiveKitException` also catches data stream failures, such as a write cut off by disposing the room +* Fixed: A data packet in flight when the room is disposed no longer fails with a PlatformException from the closed data channel. The send completes when the packet went out and fails with UnexpectedConnectionState when it did not +* Fixed: Fix data stream writes that could hang after a full reconnect, carried on after the room disconnected, or leaked a listener while waiting for the send buffer to drain. Writes now also wait for a reconnect to finish +* Fixed: A track processor now stays attached across mute and unmute with the default stop-on-mute capture options, and across restartTrack such as a camera switch, instead of being silently dropped. It is restarted on the new media track, and the sender carries its processed track when it has one +* Fixed: Reconnect delays now carry proportional jitter, so clients disconnected by the same event no longer retry in lockstep. The first retry draws from a small random window instead of firing immediately, and later retries are scaled by a random factor between 0.5 and 1.5 +* Fixed: The last subscribed codecs are now re-applied to the local video senders after each publisher renegotiation, so simulcast layers that dynacast paused are no longer re-enabled by the SFU answer +* Fixed: Data stream writes on a closed engine fail with UnexpectedConnectionState instead of a plain string error +* Fixed: `LiveKitVideoGrant` now reads the camelCase keys of the `video` claim (`roomJoin`, `canPublish`, and so on), so `TokenSourceResponse.jwtPayload?.video` returns the grants of a real LiveKit token instead of null fields + ## 2.13.2 * Security: Bump flutter_webrtc to 1.6.3 and WebRTC-SDK to 150.7871.04. The bundled TURN/TLS roots no longer include AAA Certificate Services, which cross-signs the compromised eMudhra intermediate CAs (CVE-2026-111943) diff --git a/README.md b/README.md index 39537aeff..5c117b58d 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ Include this package to your `pubspec.yaml` ```yaml --- dependencies: - livekit_client: ^2.13.1 + livekit_client: ^2.14.0 ``` ### iOS diff --git a/ios/livekit_client.podspec b/ios/livekit_client.podspec index d5e665b5a..b050d7437 100644 --- a/ios/livekit_client.podspec +++ b/ios/livekit_client.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'livekit_client' - s.version = '2.13.1' + s.version = '2.14.0' s.summary = 'Open source platform for real-time audio and video.' s.description = 'Open source platform for real-time audio and video.' s.homepage = 'https://livekit.io/' diff --git a/lib/src/livekit.dart b/lib/src/livekit.dart index 2b471d3be..61b9622f7 100644 --- a/lib/src/livekit.dart +++ b/lib/src/livekit.dart @@ -23,7 +23,7 @@ import 'support/webrtc_initialize_options.dart'; /// Main entry point to connect to a room. /// {@category Room} class LiveKitClient { - static const version = '2.13.1'; + static const version = '2.14.0'; /// Initialize the WebRTC plugin. /// diff --git a/macos/livekit_client.podspec b/macos/livekit_client.podspec index 070f95dc8..9bf189787 100644 --- a/macos/livekit_client.podspec +++ b/macos/livekit_client.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'livekit_client' - s.version = '2.13.1' + s.version = '2.14.0' s.summary = 'Open source platform for real-time audio and video.' s.description = 'Open source platform for real-time audio and video.' s.homepage = 'https://livekit.io/' diff --git a/pubspec.yaml b/pubspec.yaml index 1ef383f47..887ef2fdd 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ name: livekit_client description: Flutter Client SDK for LiveKit. Build real-time video and audio into your apps. Supports iOS, Android, and Web. -version: 2.13.1 +version: 2.14.0 homepage: https://github.com/livekit/client-sdk-flutter # Test fixture keys for certificate pinning tests, not real secrets.