You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The EC closes immediately with no feedback to the user at all.
Desired behaviour
In SPA mode
Show a more specific error message. Something like:
Insufficient capacity
The server has reached its maximum capacity and you cannot join the call at this time. Please try again later. If the problem persists please contact your server administrator.
In embedded widget mode
Also have EC display the same error message. Keep EC open until the user has pressed a button. Add a new button instead of the "Return to home screen" which is the "Cancel" button. When Cancel is clicked then EC widget closes and the user goes back to their Matrix client/widget host.
Implementation notes
The capacity being hit should manifest itself as a 429 error from the server which enters into this codepath in the LiveKit client-js-sdk.
So, in EC where we call livekitRoom.connect() we should catch and inspect the ConnectionError.status field to see if it is a 429.
I suspect that the widget host is closing the EC widget automatically when the call membership has been removed. So, in order to implement the desired EC embedded widget behaviour we might need to keep the call membership around for longer until the user presses Cancel (or successfully joins the call).
This capability is needed on the develop/livekit branch but also is a candidate to backport to v0.7.x due to the recent deployment of the sponsored LiveKit Cloud SFU for the Matrix Foundation and that a new release of Element Call is not imminent due to #2972
The text was updated successfully, but these errors were encountered:
hughns
added
the
T-Enhancement
New features, changes in functionality, performance boosts, user-facing improvements
label
Feb 7, 2025
Current behaviour:
In SPA mode you get this error screen:
In embedded widget mode:
The EC closes immediately with no feedback to the user at all.
Desired behaviour
Show a more specific error message. Something like:
Insufficient capacity
The server has reached its maximum capacity and you cannot join the call at this time. Please try again later. If the problem persists please contact your server administrator.
Also have EC display the same error message. Keep EC open until the user has pressed a button. Add a new button instead of the "Return to home screen" which is the "Cancel" button. When Cancel is clicked then EC widget closes and the user goes back to their Matrix client/widget host.
Implementation notes
The capacity being hit should manifest itself as a
429
error from the server which enters into this codepath in the LiveKit client-js-sdk.So, in EC where we call
livekitRoom.connect()
we should catch and inspect theConnectionError.status
field to see if it is a 429.I suspect that the widget host is closing the EC widget automatically when the call membership has been removed. So, in order to implement the desired EC embedded widget behaviour we might need to keep the call membership around for longer until the user presses Cancel (or successfully joins the call).
This capability is needed on the develop/
livekit
branch but also is a candidate to backport tov0.7.x
due to the recent deployment of the sponsored LiveKit Cloud SFU for the Matrix Foundation and that a new release of Element Call is not imminent due to #2972The text was updated successfully, but these errors were encountered: