Why doesn't fullscreen work in chrome-85 for aios?

  • 0
    when you press the fullscreen button, the function works:

    // check if fullscreen mode is available
      if (document.fullscreenEnabled || 
        document.webkitFullscreenEnabled || 
        document.mozFullScreenEnabled ||
        document.msFullscreenEnabled) {
        
        // which element will be fullscreen
        var iframe = document.querySelector('#player_block');
        // Do fullscreen
        if (iframe.requestFullscreen) {
          iframe.requestFullscreen();
        } else if (iframe.webkitRequestFullscreen) {
          iframe.webkitRequestFullscreen();
        } else if (iframe.mozRequestFullScreen) {
          iframe.mozRequestFullScreen();
        } else if (iframe.msRequestFullscreen) {
          iframe.msRequestFullscreen();
        }
      }
      else {
        alert( 'Your browser is not supported')  //показывает это
      }


    caniuse says that chrome should be able to:
    JavaScript Connor Mosley, Sep 6, 2020

  • 0 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!