How to set custom userId?

last parameter of generateVideoToken should be custom userId, i think.
but getCurrentUserInfo or getSessionInfo return a not sure userId.

Browser Console Error

Which Web Video SDK version?

Video SDK Code Snippets

To Reproduce(If applicable)
Steps to reproduce the behavior:

  1. Go to ‘…’
  2. Click on ‘…’
  3. Scroll down to ‘…’
  4. See error

If applicable, add screenshots to help explain your problem.

Device (please complete the following information):

  • Device: Macbook Pro
  • OS: macOS Big Sur
  • Browser: Chrome
  • Browser Version :95.0.4638.54(Official Build) (x86_64)

Additional context
I have many canvas dom,so i want a predictable userID to find corresponding dom.

Hey @wuxyman ,

That is correct:

This allows you to pass in a custom id for your own reporting purposes. This ID will be present in the new Video SDK APIs and Webhooks.

Correct. There is also a in session userId that Zoom generates that identifies the user so the developer can call the other Video SDK in session APIs for that user.

Example, the stream.muteAudio(userId?: number) function.

The one in the signature is for the Video SDK APIs and Webhooks, the one that Zoom generates for the live session is for the in session functions. :slight_smile:

Does that make sense?


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.