question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Presentation Mode not working in Safari

See original GitHub issue

Hello,

Just me again… your friendly-neighborhood bug reporter 😉 It appears that Presentation Mode (aka Fullscreen mode) isn’t working in Safari (at least not on MacOS).

I found this SO issue and it seems to apply: http://stackoverflow.com/questions/8427413/webkitrequestfullscreen-fails-when-passing-element-allow-keyboard-input-in-safar

Basically, if you drop Element.ALLOW_KEYBOARD_INPUT from the call to webkitRequestFullScreen it sort of works. E.g.

//this.container.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
this.container.webkitRequestFullScreen();  // probably breaks Chrome, through.

I doesn’t render well though… e.g. if the developer bar was open at the bottom when webkitRequestFullScreen is called, then there’s a gap in the fullscreen view where the dev bar was.

Could we maybe hide the Presentation Mode in Safari until it can be rendered correctly?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ottonascarellacommented, Dec 17, 2014

adding this seems to fix it:

    if (this.container.requestFullscreen) {
        this.container.requestFullscreen();
    } else if (this.container.mozRequestFullScreen) {
        this.container.mozRequestFullScreen();
    } else if (this.container.webkitRequestFullScreen) {
        this.container.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
        if (!document.webkitCurrentFullScreenElement) {
            this.container.webkitRequestFullScreen();
        }
    } else if (this.container.msRequestFullscreen) {
        this.container.msRequestFullscreen();
    } else {
        return false;
    }
0reactions
ghostcommented, May 15, 2019

This is not working (anymore) on newest Safari and iOS version. The button is not shown, and if I disable the check to show it there is nothing happening after I click on it.

You can test this by opening Safari on your iPhone and navigating to the pdf.js demo here: https://mozilla.github.io/pdf.js/web/viewer.html

Read more comments on GitHub >

github_iconTop Results From Across the Web

presenter mode doesn't work - Apple Community
I'm trying to use Keynote to make presentations via Zoom as well ... However, I can't get Presenter mode to work in order...
Read more >
Looking for "presentation mode" in Safari browser
Trying out different browsers, and I noticed this nifty "presentation mode" in Chrome browser.
Read more >
Can't use Powerpoint Online in Safari (Sharepoint, Office 365)
When opening any Powerpoint presentation in-browser in Safari, I am not able to see any of the slides in the left-side panel, ...
Read more >
Configure your browser for Figma
You can use Figma on Chrome, Safari, Microsoft Edge and Firefox ... Use hardware acceleration when available; If WebGL isn't enabled, open Chrome's...
Read more >
Present slides - Computer - Google Docs Editors Help
Full-screen presentations work from a computer, mobile device, or TV with ... View a presentation ... For best results, present with Google Chrome....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found