-
Notifications
You must be signed in to change notification settings - Fork 43
chore(llc): improved sfu error handling in call flow #1004
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe changes introduce improved SFU error handling and more precise disconnect reason tracking in the call flow. A new Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Call
participant SFU
participant Logger
User->>Call: join()
alt Join fails
Call->>Call: leave(reason: DisconnectReason.failure)
end
SFU-->>Call: SfuParticipantLeftEvent
alt Last participant left & dropIfAlone
Call->>Call: leave(reason: DisconnectReason.lastParticipantLeft)
end
SFU-->>Call: SfuSocketDisconnected
alt _leaveCallTriggered is true
Call->>Logger: Debug log (no reconnection)
else _leaveCallTriggered is false
Call->>Call: Attempt reconnection
end
SFU-->>Call: SfuErrorEvent (disconnect strategy)
Call->>Call: leave(reason: DisconnectReason.sfuError)
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (8)
🧰 Additional context used🪛 LanguageToolpackages/stream_video_flutter/CHANGELOG.md[duplication] ~17-~17: Possible typo: you repeated a word. (ENGLISH_WORD_REPEAT_RULE) ⏰ Context from checks skipped due to timeout of 90000ms (8)
🔇 Additional comments (21)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1004 +/- ##
========================================
- Coverage 4.16% 4.16% -0.01%
========================================
Files 573 573
Lines 38508 38513 +5
========================================
Hits 1604 1604
- Misses 36904 36909 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Refactor