client-sdk-unity icon indicating copy to clipboard operation
client-sdk-unity copied to clipboard

Error on the 2nd time sharing screen

Open AdamBuchweitz opened this issue 2 years ago • 0 comments

I can share my screen from the example site and it works as expected. Then stopping the share correctly gives me the TrackUnpublished event so I can remove the video. But then if I share my screen again, I get the following error:

KeyNotFoundException: The given key 'TR_VSDiiQDFQVbUXU' was not present in the dictionary.
System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) (at <6aa56e57ab504395b555cf3ed50fa53d>:0)
LiveKit.Room.OnEventReceived (LiveKit.Proto.RoomEvent e) (at ./Library/PackageCache/io.livekit.livekit-sdk@60ae9e2e41/Runtime/Scripts/Room.cs:112)
LiveKit.Internal.FfiClient+<>c.<FFICallback>b__33_0 (System.Object resp) (at ./Library/PackageCache/io.livekit.livekit-sdk@60ae9e2e41/Runtime/Scripts/Internal/FFIClient.cs:149)

👣 Steps to reproduce

  1. Connect to a room from Unity
  2. Connect to the same room from https://example.livekit.io
  3. Share screen from web
  4. Stop sharing from web
  5. Share screen from web again

AdamBuchweitz avatar Jul 20 '23 22:07 AdamBuchweitz