Repository navigation
Minor Changes
-
Data streams v2: Data streams are now backed by the shared Rust core (
livekit-ffi), which adds the v2 wire format: a small, known-size payload is sent as a single packet with the content inline in the header, and payloads can bedeflate-rawcompressed. Both are negotiated per recipient, so rooms with older peers keep working. - #1052 (@xianshijing-lk)ConnectOptions.clientProtocolnow defaults toClientProtocolVersion.DATA_STREAM_V2.- New
ClientCapabilityenum andParticipant.capabilities, mirroring the capabilities each peer's client advertises. - New
RoomOptions.dataStreamOptions/Room.dataStreamOptions, withDataStreamOptions.maxPayloadByteLengthto cap the size of a reassembled incoming payload. - New
compressflag onStreamTextOptionsandStreamBytesOptions(defaulttrue). Only applies to whole-payload sends such assendText/sendBytes; incremental streams are never compressed. - New
OutgoingDataStreamManager.sendBytesconvenience for sending a whole byte array. - New
StreamExceptiontypes:HeaderTooLargeExceptionandPayloadTooLargeException(both subclasses ofLengthExceededException), andInternalException.TerminatedExceptiongains areason. An exhaustivewhenoverStreamExceptionneeds a branch for the new cases. - Incoming streams are held to the encryption type their header arrived with; a mismatching chunk or trailer fails the reader with
EncryptionTypeMismatch.
Patch Changes
-
Fix a crash when a participant's
lk.agent.inputsorlk.agent.outputsattribute is not a valid JSON array. The attribute is now logged as a warning and the participant's agent attributes are left unchanged. - #1053 (@1egoman) -
Fix crashes when a data channel packet, a decrypted end-to-end encrypted payload, or a signal message cannot be parsed. The message is now logged and dropped. - #1054 (@1egoman)
-
Validate region URLs before failing over to them. Regions returned by
/settings/regionsor reported by the server were previously used as-is. Each URL must now name a LiveKit Cloud host and use an encrypted scheme (wss/https); entries that do not are logged and dropped. - #1052 (@xianshijing-lk)