Skip to content
Open

v2.31.0 #1059

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
9 changes: 0 additions & 9 deletions .changeset/data-received-participant-identity.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/reconnect-delay-jitter.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/rpc-error-truncate-on-send.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/rpc-reject-pending-on-disconnect.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/single-peer-connection.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/transport-interface.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/truncate-bytes-surrogate-pair.md

This file was deleted.

32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# client-sdk-android

## 2.31.0

### Minor Changes

- Add `ConnectOptions.singlePeerConnection`, which joins through the `/rtc/v1` signal path and publishes and receives on one peer connection instead of a publisher and a subscriber. The client makes every offer; the server's media sections requirement adds receive-only transceivers, and the answer's mid-to-track mapping resolves received tracks. A server without `/rtc/v1` answers that handshake with 404, in which case the join retries on the legacy path with dual peer connections and later reconnects stay there. The option is off by default. - [#1066](https://github.com/livekit/client-sdk-android/pull/1066) ([@changt](https://github.com/changt))

### Patch Changes

- Expose `participantIdentity` on `RoomEvent.DataReceived`. The event's `participant` is nullable and is null whenever the sender is not in the room — data sent through the Server API, or by a participant that has already left. In that case the receiver had no way to tell who sent the data, because the engine dropped the identity before building the event: `onUserPacket` was handed only the inner `UserPacket`, while the authoritative identity lives on the enclosing `DataPacket`. - [#1046](https://github.com/livekit/client-sdk-android/pull/1046) ([@xianshijing-lk](https://github.com/xianshijing-lk))

The internal engine listener now forwards that identity, and it is reported on every `DataReceived` event whether or not the sender resolves to a `RemoteParticipant`.

This matches the JavaScript SDK (livekit/client-sdk-js#2092).

- Add proportional jitter to the default reconnect delays. `DefaultReconnectPolicy` returned a fixed delay for each retry count, so every client disconnected by the same event — a server restart, a region failover, a dropped uplink — waited exactly 100ms, then 300ms, then 300ms, and so on, in lockstep. They retried as one herd and could keep re-synchronising across attempts. - [#1045](https://github.com/livekit/client-sdk-android/pull/1045) ([@xianshijing-lk](https://github.com/xianshijing-lk))

Each delay is now scaled by a random factor between 0.5 and 1.5, spreading clients further apart with every retry. A first retry whose configured delay is zero instead draws from a fixed 0–500ms window, since there is no base delay to scale; a zero at any later index still means retry immediately.

This matches the JavaScript SDK (livekit/client-sdk-js#2124).

- Fix not truncating outgoing `RpcError` messages to 256 bytes and data to 15 KB. - [#1044](https://github.com/livekit/client-sdk-android/pull/1044) ([@xianshijing-lk](https://github.com/xianshijing-lk))

- `performRpc` now fails as soon as the room disconnects, rather than staying suspended until its response timeout. - [#1067](https://github.com/livekit/client-sdk-android/pull/1067) ([@xianshijing-lk](https://github.com/xianshijing-lk))

Room cleanup reports every remote participant as disconnected, which already rejected calls addressed to a participant the room knew about. A call to an identity that never appeared in the participant list — an agent that has not joined yet, say — was in no such loop, so it stayed pending for the full `responseTimeout` after the room had gone. The caller's coroutine is now resumed with `RECIPIENT_DISCONNECTED` instead.

This matches the Rust SDK's `fail_all_pending` and the Swift SDK's `handleAllPendingDisconnected` (livekit/client-sdk-js#2251).

- Move RTCEngine's peer connections behind an internal `Transport` interface. `DualPeerConnectionTransport` implements it for the existing publisher and subscriber peer connection pair and owns the decisions that depend on that arrangement: ICE candidate routing, answering server offers, which peer connections a resume waits on, and the sync state descriptions. No behavior changes. - [#1064](https://github.com/livekit/client-sdk-android/pull/1064) ([@changt](https://github.com/changt))

- Fix long RPC error messages and data sometimes ending in a garbled character when truncated in the middle of an emoji or similar character. - [#1044](https://github.com/livekit/client-sdk-android/pull/1044) ([@xianshijing-lk](https://github.com/xianshijing-lk))

## 2.30.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ LiveKit for Android is available as a Maven package.
```groovy title="build.gradle"
...
dependencies {
def livekit_version = "2.30.0"
def livekit_version = "2.31.0"

implementation "io.livekit:livekit-android:$livekit_version"

Expand All @@ -95,7 +95,7 @@ dependencies {
implementation "io.livekit:livekit-android-track-processors:$livekit_version"

// Snapshots of the latest development version are available at:
// implementation "io.livekit:livekit-android:2.30.1-SNAPSHOT"
// implementation "io.livekit:livekit-android:2.31.1-SNAPSHOT"
}
```

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ kapt.use.worker.api=true
###############################################################

GROUP=io.livekit
VERSION_NAME=2.30.0
VERSION_NAME=2.31.0

POM_DESCRIPTION=LiveKit Android SDK, WebRTC Rooms

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "client-sdk-android",
"version": "2.30.0",
"version": "2.31.0",
"repository": "https://github.com/livekit/client-sdk-android.git",
"license": "Apache License 2.0",
"private": true,
Expand Down