Element fullscreenElement

Returns the element, if any, that is currently displayed in fullscreen.

Returns null if there is currently no fullscreen element. You can use this to determine if the page is in fullscreen mode.

myVideo = new VideoElement();
if (document.fullscreenElement == null) {
  myVideo.requestFullscreen();
  print(document.fullscreenElement == myVideo); // true
}

Other resources