No internet connection
  1. Home
  2. Technical Support

Full Screen Mode not working in Safari

By J Anthony @senseiweb
    2021-12-09 15:40:50.993Z

    Hey team -- fullscreen mode for Safari seems to be broken. Here is the console log...I believe it's because the requestFullScreen has to be prefixed with webkit for Safari
    https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullScreen -- any thoughts on a fix or workaround?
    this.shadowRoot
    .querySelector(".screen-wrapper")
    .requestFullscreen is not a function.

    Solved in post #2, click to view
    • 1 replies
    1. Thanks for reporting this! I've filed a bug to track this here:

      https://github.com/tiny-pilot/tinypilot/issues/851

      As a workaround, you could SSH in and run this command to patch your version to use the Safari-compatible version:

      sudo sed -i -e 's/requestFullscreen/webkitRequestFullscreen/g' \
        /opt/tinypilot/app/templates/custom-elements/remote-screen.html
      
      Reply1 LikeSolution