Event listeners is able to receive events multiple times

Hi,

The zoom SDK (umd javascript file) version 1.3.0 is loaded once by the web application and the user enters and exits the zoom screen multiple times.

The screen is receiving these events multiple times. If the user entered the zoom screen for the third time, These events were fired three times. This is creating a problem with the user names displayed on the screen.

‘connection-change’
‘user-updated’
‘user-removed’
‘user-added’
‘peer-video-state-change’
‘video-active-change’

The below function is called before leaving the zoom screen for each event.
off(event: string, callback: (payload: any) => void): void

leave() and destroyClient() API is called before leaving the zoom screen.

The version of zoom video SDK is 1.3.0

Steps to reproduce the behavior:
Go to the zoom screen and exit the zoom screen three times.

Screenshots

Device

  • Device: Desktop
  • OS: Windows 11
  • Browser: Chrome
  • Browser Version Version 105.0.5195.127 (Official Build) (64-bit)

Please let us know how to resolve this issue.

Thanks
Krishnan V R

Hey @kvr

Thanks for your feedback.

Did you mean the user-added,user-updated events were triggered more times than expected?

In Video SDK Web, in some cases, we indeed trigger the event multiple times, the userId in a session is unique and you can merge these events’ payload by the userId.

If you don’t want to do the tedious work, just call the client.getAllUser() in the event callback to retrieve the latest user list. The Video SDK guarantees the list is correct.

Thanks
Vic