twilio / twilio-video.js

Twilio’s Programmable Video JavaScript SDK
https://www.twilio.com/docs/video/javascript
Other
569 stars 216 forks source link

'participantDisconnected' event is not triggered in Next.js #2015

Open Fahad-Anwar3 opened 1 year ago

Fahad-Anwar3 commented 1 year ago

Code to reproduce the issue: I have done my research and have not found this issue reported anywhere. To share the bug and reproduce it I have a created a new Next.js project from scratch and setup Twilio into that.

Steps to reproduce the issue

  1. Join a room with video call (there should be at least 2 participants)
  2. log out from call from one of the participant
  3. The participantDisconnected listener will not trigger the event for remote participant disconnection

This is the repo for the project and the issue can be reporduced

Expected behavior:

The participantDisconnected listener event should be triggered for all other participants in the room when any remote participant disconnects

Actual behavior:

The participantDisconnected listener event does not get triggered and video frame from remote participants seems to be frozen even though the remote participant has left the room

Software versions: