Skip to content

rtc-0.1.8

Latest

Choose a tag to compare

@pabloFuente pabloFuente released this 17 Nov 12:34
· 24 commits to main since this release
  • Update rust-sdks to livekit-ffi/v0.14.0 PR #185
  • Changed with livekit-ffi v0.14.0:
    • KeyProvider.SetSharedKey and KeyProvider.SetKey throw InvalidOperationException (the native
      log reads failed to handle request: InvalidRequest("key index out of bounds")) for a
      keyIndex outside 0 to KeyProviderOptions.KeyRingSize - 1, which they used to accept
      silently, and SetSharedKey also throws in a room connected without
      KeyProviderOptions.SharedKey, where it did nothing. For such an index, ExportSharedKey,
      RatchetSharedKey, ExportKey and RatchetKey return an empty array (-1 used to address
      the current key). The native SDK clamps KeyRingSize to the range 1 to 255. PR #185
    • A PerformRpcAsync call still waiting when its own room disconnects fails with
      RpcError.Code 1506 and the message Connection closed, instead of 1503
      (RpcErrorCode.RecipientDisconnected), which now only means that the destination left.
      RpcErrorCode has no member for 1506 (nor do the Node and Python SDKs): compare Code with
      1506. PR #185
    • The native SDK logs libwebrtc's warnings and errors at their own level instead of as debug,
      so stderr now shows libwebrtc errors by default, often many per connection and mostly
      harmless ([ERROR libwebrtc] (basic_packet_socket_factory.cc:54): UDP bind failed with error 99 for each address it cannot use, for example), and RUST_LOG=warn adds its warnings.
      RUST_LOG=error,libwebrtc=off hides them again. PR #185
    • LiveKit servers see participants of this SDK as the .NET SDK (ClientInfo.SDK.DOTNET in the
      join request) instead of an unknown SDK when they connect over a single peer connection, the
      default of RoomOptions.SinglePeerConnection. PR #185
    • The native HTTP client no longer follows a redirect from https to plain http, so its
      Authorization header never reaches a plaintext URL; such a redirect now fails the request. PR #185
    • Fixed: a disconnected Room left its remote participants and their tracks, encrypted ones
      included, in native memory. PR #185
  • New, as in the Node and Python SDKs:
    • RoomOptions.RtcConfig: ICE settings, such as TURN relays only (IceTransportType.TransportRelay). README PR #181
    • RoomOptions.ConnectTimeout, RoomOptions.SinglePeerConnection and RoomOptions.DataStream (size limit of incoming streams). PR #181
    • Track.GetStatsAsync: WebRTC statistics of one track. README PR #181
    • AudioProcessingModule: echo cancellation, noise suppression and gain control. README PR #181
    • Optional parameters: maxRoundTripLatency in PerformRpcAsync, isScreencast in VideoSource, and metadata in VideoSource.CaptureFrame (received in VideoFrameEvent.Metadata). PR #181
  • Fixed:
    • Text and byte streams from the Node, Python and Rust SDKs (an agent's chat or transcriptions, for example) never arriving, or arriving garbled. PR #181
    • Room.Dispose, Room.Disconnect and AudioSource.CaptureFrame deadlocking on a UI thread (WPF, WinForms, MAUI). PR #162
    • Room events: LocalTrackPublished missing when a track was unpublished right away PR #179; TrackSubscribed with no TrackUnsubscribed to follow when the track or its participant went away during the subscription PR #163 PR #177; a throwing handler hiding the event from the other handlers, and every event held for 10 s after a cancelled PublishTrackAsync PR #162.
    • Native memory leaks: incoming data streams, events of a closing room and tracks whose subscription failed PR #159 PR #162; a disconnected Room kept in memory for 15 s PR #168.
    • Disconnection: a room reconnected right after DisconnectAsync received no events, and concurrent DisconnectAsync, Disconnect and Dispose calls could throw. PR #162
    • Disposal races: AudioSource.Dispose hanging or crashing with audio still queued PR #179; AudioResampler.Dispose during Push or Flush returning garbage or crashing PR #162.
    • Audio streams: a slow FrameProcessor delaying the events of every room PR #167; audio dropped during long pauses of the process, such as a garbage collection PR #181.
  • Changed:
    • Room.ConnectAsync throws InvalidOperationException while the room is already connecting. PR #162
    • An already cancelled CancellationToken makes ConnectAsync, SimulateScenarioAsync, PublishTrackAsync, UnpublishTrackAsync, PublishDataTrackAsync and AudioSource.CaptureFrameAsync throw OperationCanceledException before doing anything. PR #162
    • Deprecated VideoSource(int, int), VideoSource.CaptureFrame(VideoFrame, long, VideoRotation) and PerformRpcAsync(string, string, string, double?), replaced by the overloads with the new optional parameters. With C# 12 or older, a call with exactly the old arguments warns CS0618: add the new parameter, for example new VideoSource(640, 480, isScreencast: false). PR #181