Enters or leaves full screen mode for the viewer. The fullscreenModeToggled event is triggered once the browser has switched. If the browser refuses (for example, when the call does not come from a user gesture), nothing changes.
fullscreenModeToggled
button.addEventListener('click', () => instance.UI.toggleFullScreen()); Copy
button.addEventListener('click', () => instance.UI.toggleFullScreen());
Enters or leaves full screen mode for the viewer. The
fullscreenModeToggledevent is triggered once the browser has switched. If the browser refuses (for example, when the call does not come from a user gesture), nothing changes.