stream-video-android
stream-video-android copied to clipboard
Improve peer connection health check to prevent reconnecting
🎯 Goal
When user does not have send-audio or send-video permissions the publisher peer connection (RtcSession.publisher) is null. Take this into account when checking the peer connection health in CallHealthMonitor.check() and prevent infinite reconnections.
Reported by Patreon in their audio room setup.
🛠Implementation details
Check if user can publish video or audio and take this into account in CallHealthMonitor.check().