livekit / client-sdk-android

LiveKit SDK for Android
https://docs.livekit.io
Apache License 2.0
165 stars 64 forks source link

Force webrtc method calls onto a single thread #342

Closed davidliu closed 7 months ago

davidliu commented 7 months ago

The PeerConnection API is not thread safe, so this can cause issues when interacting with it across threads. This additionally helps with the issue of disposing the PeerConnection, making sure there are no threading issues with multiple disposes across threads.