How to set custom userId?

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

Browser Console Error
nothing

Which Web Video SDK version?
1.1.5

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

Screenshots
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: https://marketplace.zoom.us/docs/sdk/video/web/essential/create-join-session#authenticate

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?

Thanks,
Tommy

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