Catch error when attendees are unable to connect to signalling channel.
See original GitHub issueWhat are you trying to do?
Several times we had the problem that an attendee wasn’t able to connect to the websocket signalling channel due to for example being on a VPN that doesn’t allow the attendee to connect. We want at that moment to be able to communicate to the attendee that the connection cannot be established and therefore redirect the user. However, we do not see a way of catching the error and responding to it as it happens before the audioVideoDidStop
and also before the meetingSession.audioVideo.realtimeSubscribeToFatalError
. We also tried wrapping the audioVideo.start()
in a try-catch but without success.
If anyone knows a way to capture this error that would be awesome 😄
What documentation have you looked at so far?
We searched for a way to catch the error occurring when trying to connect to the meeting, or even before that. As mentioned above, the following options have been tried & looked at but without success:
meetingSession.audioVideo.realtimeSubscribeToFatalError()
https://aws.github.io/amazon-chime-sdk-js/classes/defaultaudiovideofacade.html#realtimesubscribetofatalerror- Wrapping the
meetingSession.audioVideo.start()
in a try-catch https://aws.github.io/amazon-chime-sdk-js/classes/defaultaudiovideofacade.html#start - Getting the
MeetingSessionStatus
in theaudioVideoDidStop
observer. https://aws.github.io/amazon-chime-sdk-js/interfaces/audiovideoobserver.html#audiovideodidstop
Screenshot of the console-error
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:5 (2 by maintainers)
@ltrung it takes 2 minutes to get the
audioVideoDidStop
event withstatusCode = TaskFailed
.Is there a way to tell
amazon-chime-sdk-js
how much time we are ok to wait foraudioVideoDidStart
before sendingaudioVideoDidStop
and stop trying to connect to the Chime Meeting please ?If not, do you plan on working on this kind of feature ?
Thanks in advance !
@HbZh