100mslive / 100ms-web

A conferencing and streaming UI built with 100ms SDK.

Home Page:https://examples-videoconferencing.app.100ms.live/preview/tmz-qdi-cyp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

actions.changeRole causes dropped audio track on role change

tylerzey opened this issue · comments

Describe the bug
I have 3 roles for my 100ms meeting (admin, guest, and waiting room).

For public meetings, the admin has an useEffect hook that monitors HMSNotificationTypes.PEER_JOINED in the waiting room. It automatically calls actions.changeRole upon getting the notifications.

Periodically (3/10 times) waiting room users upgraded to guest users will have their audio track not changeRoles with them.

They will still appear to have an audio track on their side, but on the admin side, it will look like they are muted and have no audio track.

To Reproduce
Steps to reproduce the behavior:

  1. Go create 3 roles
  2. For the admin role, have a useEffect that immediately calls actions.changeRole
  3. See that the audio track on the guests role does not transfer roles

Expected behavior
The audio works as expected.

Desktop (please complete the following information):

  • OS: MacOS
  • Browser chrome
  • Version latest.