Is it possible to add a confirmation dialogue for when you close the PIP window?

Hello Zoom community,

I’m working with the Zoom Video SDK and have encountered an issue with the Picture-in-Picture (PiP) window that appears when sharing a screen during a meeting. In this setup, the PiP window shows participants and provides a close button (X) to hide the window. However, some users unintentionally click the close button without realizing that it will close the PiP window.

I would like to know if there’s any way to add a confirmation dialog before the PiP window closes. Specifically, I want to ensure that users have to confirm before closing the window to avoid accidental clicks.

Here are the key points I’m wondering about:

  • Can the PiP close button behavior be customized through the Zoom Video SDK?
  • Is there any way to hook into the PiP window’s close action to display a confirmation dialog before it’s closed?
  • If the SDK does not support this directly, are there any workarounds or suggestions on how to implement this functionality?

I’m using the Zoom Video SDK (specifically the VideoClient API) to manage video, audio, and screen sharing during meetings. However, I don’t see an explicit way to modify the PiP window or its controls.

Any guidance or suggestions on how to handle this would be greatly appreciated!

Thanks in advance for your help.

Hey @aladin.bensassi

Thanks for your feedback.

Can the PiP close button behavior be customized through the Zoom Video SDK?

Video SDK Web supports working in a PiP window, but since it involves UI interactions, the PiP functionality needs to be implemented by the developer. You can refer to this article on MDN for guidance.

As for detecting clicks on the close button, since this is also a window, you can handle it by listening to the beforeunload or onunload events.

Thanks
Vic

Thank you for the response, but no where in that document does it say that we can add a confirmation dialog before closing the PIP window

Hey @aladin.bensassi

Yes. The browser does not support preventing the window from closing after clicking the close button.

Thanks
Vic

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