Skip to content
Merged

v2.14.0 #1297

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .changes/android-kgp-warning-builtin-kotlin

This file was deleted.

1 change: 0 additions & 1 deletion .changes/buffer-wait-typed-error

This file was deleted.

1 change: 0 additions & 1 deletion .changes/bump-livekit-ffi-0.13.2

This file was deleted.

1 change: 0 additions & 1 deletion .changes/bump-livekit-ffi-0.15.0

This file was deleted.

1 change: 0 additions & 1 deletion .changes/darwin-webrtc-plugin-instance

This file was deleted.

1 change: 0 additions & 1 deletion .changes/data-channel-buffer-wait

This file was deleted.

1 change: 0 additions & 1 deletion .changes/data-received-participant-identity

This file was deleted.

1 change: 0 additions & 1 deletion .changes/data-stream-error-livekit-exception

This file was deleted.

1 change: 0 additions & 1 deletion .changes/data-stream-options

This file was deleted.

1 change: 0 additions & 1 deletion .changes/data-stream-send-after-delivery

This file was deleted.

1 change: 0 additions & 1 deletion .changes/data-streams-v2

This file was deleted.

1 change: 0 additions & 1 deletion .changes/deferred-offer-lost

This file was deleted.

1 change: 0 additions & 1 deletion .changes/disconnect-during-full-reconnect

This file was deleted.

1 change: 0 additions & 1 deletion .changes/e2ee-shared-key-index

This file was deleted.

1 change: 0 additions & 1 deletion .changes/engine-terminal-closure

This file was deleted.

1 change: 0 additions & 1 deletion .changes/fix-audio-red-inverted

This file was deleted.

1 change: 0 additions & 1 deletion .changes/flutter-3.50-material-import

This file was deleted.

1 change: 0 additions & 1 deletion .changes/ignore-duplicate-answer

This file was deleted.

1 change: 0 additions & 1 deletion .changes/ios-quiet-remote-audio-while-capturing

This file was deleted.

1 change: 0 additions & 1 deletion .changes/jwt-video-grant-claim-names

This file was deleted.

1 change: 0 additions & 1 deletion .changes/keep-processor-across-restart

This file was deleted.

1 change: 0 additions & 1 deletion .changes/logging-level-setters

This file was deleted.

1 change: 0 additions & 1 deletion .changes/participant-update-races

This file was deleted.

1 change: 0 additions & 1 deletion .changes/preconnect-audio-survives-failover

This file was deleted.

1 change: 0 additions & 1 deletion .changes/reconnect-delay-jitter

This file was deleted.

1 change: 0 additions & 1 deletion .changes/redact-access-token-in-signal-url-log

This file was deleted.

1 change: 0 additions & 1 deletion .changes/redact-refreshed-token-in-event-log

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion .changes/reliable-sends-full-reconnect

This file was deleted.

1 change: 0 additions & 1 deletion .changes/rpc-error-truncation-byte-length

This file was deleted.

1 change: 0 additions & 1 deletion .changes/send-during-dispose

This file was deleted.

1 change: 0 additions & 1 deletion .changes/stale-participant-sid

This file was deleted.

1 change: 0 additions & 1 deletion .changes/stream-packet-after-close

This file was deleted.

1 change: 0 additions & 1 deletion .changes/stream-writer-close

This file was deleted.

1 change: 0 additions & 1 deletion .changes/uniffi-rust-core-dev-wiring

This file was deleted.

1 change: 0 additions & 1 deletion .changes/validate-region-urls

This file was deleted.

1 change: 0 additions & 1 deletion .changes/web-video-renderer-lifecycle

This file was deleted.

2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.13.1
2.14.0
39 changes: 39 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Include this package to your `pubspec.yaml`
```yaml
---
dependencies:
livekit_client: ^2.13.1
livekit_client: ^2.14.0
```

### iOS
Expand Down
2 changes: 1 addition & 1 deletion ios/livekit_client.podspec
Original file line number Diff line number Diff line change
@@ -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/'
Expand Down
Loading
Loading