Description
I am using sample-webapp shared by zoom for zoom sdk.
I tried using rename API of zoom but it throws error and error code is 3003.
But if I try to rename it on zoom SDK initialised UI interface it allows me. Which version?
Knowing the version can help us to identify your issue faster.
To Reproduce(If applicable)
Steps to reproduce the behavior:
Yes I am getting that error, but i am using sample-webapp of zoom-sdk where user joins the meeting with role 0 then how am I able to rename the participants name on the UI instantiated using sample-webapp.
I checked just now in version 1.8.0. Seems like you actually can rename yourself via the ZoomMtg.rename() function. But it still throws the error code 3003, meaning ERROR_NOT_HOST.
So, it does actually rename the user (using the user’s own userId via ZoomMtg.getCurrentUser()), but since it throws (falsely?) the logic flow needs to have this in consideration.
Being able to rename yourself via the Web SDK is something desirable, so please keep allowing this. But don’t throw error 3003 when renaming yourself, only when trying to rename a different user.
Yes, the meeting settings allow users to rename themselves.
But now in version 1.9.1 of the Web SDK, the ZoomMtg.rename() function only works like one time, and then it stops working.
It still throws the same error as before, that the user is not Host nor Co-Host.
I first get an error callback, but if it works I also get a success callback. So yes, I receive both an error and success callback at the same time…
I can’t figure out how this could be! The SDK has a working under-the-hood API to rename the user via the participants list UI. Why does the SDK not use the same internal API as the UI?
Thank you for reaching out to the Zoom Developer Forum. Just to confirm, are you seeing this issue when testing with the Sample Web App? If so, please submit a new forum post with steps to reproduce the issue and we’ll investigate the issue further.
I confirmed just now that yes, this bug appears in the Sample Web App. That is, the bug in which I retrieve both an error and a success callback, but the renaming actually works.
Just setup the Sample Web App according to the instructions, and run this code in the browser’s console:
ZoomMtg.getCurrentUser({
success (res) {
console.log('Retrieved the current user.', res)
ZoomMtg.rename({
userId: res.result.currentUser.userId,
oldName: res.result.currentUser.userName,
newName: 'The New User Name',
success (res) {
console.log('Renamed the user.', res)
},
error (err) {
console.error('Failed to rename the user!', err)
}
})
},
error (err) {
console.error('Failed to get current user!', err)
}
})
Thank you for providing that information as well as steps to reproduce the issue! That was very helpful. I’ve since reproduced your issue an saw that it is only present when using the Safari browser.
I’ve since reached out to our engineering team to see if they are able to provide a fix. I’ll update you here when I have more information. (CS-3216)