directory
pageON THIS PAGE

Minimize call window

With only two simple steps, you can achieve the effect of minimizing the video call window within the application.

Ideally, the final effect will look like this:

null

1 Integrate the minimize function into the app

Display the minimize button

To display the minimize button, configure the ZegoUIKitPrebuiltCallConfig's topMenuBarConfig, and add the ZegoMenuBarButtonName.minimizingButton button to the top menu bar.

Copy
Copy

Configure the Overlay

To achieve the effect of minimizing the window, you need to use the ZegoUIKitPrebuiltCallMiniOverlayPage component and insert it into the Overlay of the app.

Copy

2 Prevent building multiple ZegoUIKitPrebuiltCall

When you minimize the interface, if the button is not restricted, clicking the call button again will enter the call page again. To avoid this situation, it is necessary to restrict the button.

Therefore, in the click event of the button, you need to handle it: if it is currently in a minimized state, do not carry out the page jump operation.

Copy
Copy

After completing the above two steps, you can now minimize the video call window within the application.

pageON THIS PAGE
backBack to top