client-sdk-unity
client-sdk-unity copied to clipboard
Error on the 2nd time sharing screen
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
- Connect to a room from Unity
- Connect to the same room from https://example.livekit.io
- Share screen from web
- Stop sharing from web
- Share screen from web again