zoom / videosdk-ui-toolkit-web

The Zoom Video SDK UI toolkit is a prebuilt video chat user interface powered by the Zoom Video SDK.
https://www.npmjs.com/package/@zoom/videosdk-ui-toolkit
Other
8 stars 6 forks source link

Overwrite end call button #17

Closed alexnechifor closed 1 month ago

alexnechifor commented 2 months ago

Hello! I'm using this toolkit since I only need 1 on 1 calls. Is there any way to overwrite the end call button? I just want to end the session and not display the option to either leave or end. Not only by host, but by other participant too. When one of them presses the button, just end the session.

Thanks!

tommygaessler commented 2 months ago

Hey @alexnechifor , good suggestion, we will evaluate this, but currently only the host or the REST API can end the session. However, if all users leave the session, the session will also end.

In the meantime, you could use a custom button with the REST API to end the session:

https://developers.zoom.us/docs/video-sdk/apis/#operation/sessionStatus

Related thread: https://github.com/zoom/videosdk-ui-toolkit-web/issues/12

alexnechifor commented 2 months ago

Hey @tommygaessler ! Thanks for your answer, I really appreciate it. I'm really looking forward to use this toolkit in my app, I'm just wondering, do you plan to release any updates to it, to make it more customizable let's say?

What would be the session id in this case, so I can call that endpoint?

is the sessionName that is passed in the config, or can I pass a separate sessionKey pointing to my generated id? I keep getting { code: 3001, message: 'Session is not found or has expired.' }

Thanks!

tommygaessler commented 2 months ago

Hey @alexnechifor , I am happy to hear you are looking forward to using the UI Toolkit!

We are planning some exciting updates to it, and to customize some aspects. What type of customization are you looking for?

In terms of getting the Session ID, you can easily get the Session ID from the user interface, in the settings panel, or by calling the Get Sessions API, setting a query param of your session name:

GET https://api.zoom.us/v2/videosdk/sessions?session_name=my session

https://developers.zoom.us/docs/video-sdk/apis/#operation/sessions

alexnechifor commented 2 months ago

Thank you! Excited to hear that you are planning updates!

Well, I have some suggestions for customization:

Good luck! I'm looking forward to it!

tommygaessler commented 2 months ago

Good suggestions @alexnechifor , we will evaluate these!