FullScreen on call start

Hello Everyone,
I need help regarding jitsi fullscreen option, I need to start call in fullscreen mode but unable to find any solution for this. Please need some urgent help.

Thanks

I don’t think that is possible. The full-screen API must be user-triggered (IIRC) the browser blocks it otherwise. The user must click the full-screen button.

I’m assuming you are using a browser here.

Is there a solution for this yet? Thanks.

What is the fullscreen API?

<button onclick="openFullscreen();">open full screen</button>
<button onclick="closeFullscreen();">exit full screen</button>

<script>

var elem = document.documentElement;

/* View in fullscreen */
function openFullscreen() {
  if (elem.requestFullscreen) {
    elem.requestFullscreen();
  } else if (elem.webkitRequestFullscreen) { /* Safari */
    elem.webkitRequestFullscreen();
  } else if (elem.msRequestFullscreen) { /* IE11 */
    elem.msRequestFullscreen();
  }
}

/* Close fullscreen */
function closeFullscreen() {
  if (document.exitFullscreen) {
    document.exitFullscreen();
  } else if (document.webkitExitFullscreen) { /* Safari */
    document.webkitExitFullscreen();
  } else if (document.msExitFullscreen) { /* IE11 */
    document.msExitFullscreen();
  }
}


</script>
1 Like