Allowing interaction with a second window without breaking full-screen in the first?

巧了我就是萌 提交于 2020-01-14 09:08:54

问题


I want to build a web-based presentation tool with a PowerPoint-like "presenter view" for the second monitor. I can use the HTML5 full screen API (example) to put the main presentation in fullscreen, but that seems to preclude interacting with the controller window on the other screen. Is there any way to interact with webpage windows on two different monitors when one of them is fullscreen?

Details: Chrome and Safari on OS X use Lion's native fullscreen mode, which is well-known to be broken for multiple monitors (e.g., 1, 2) -- all other monitors just display grey, and you can't even drag a tab to a different display. Firefox 11 just makes an ordinary full-screen window (thank you!), but drops full-screen when you click on any other window.

This is so close to working, and yet so far...


回答1:


This is exactly what I'm trying to do but can't seem to work anything out. I've also tried using flash on the 2nd monitor but when it loses focus by going to monitor 1 the fullscreen is gone.

From what I understand this is a security issue. Fair enough.. but surely there is a way.. maybe silverlight or java?

I think you can do it in an AIR app but I want to run this thing right from a browser.




回答2:


Some javascript presentation libraries like reveal.js already support presentation notes where you open the presentation in the secondary screen and set it full screen, then open a presenter view and put it on the main screen.

Firefox have a bug that turns off full screen when it's loses focus, to fix that check this tip: just full-screen-api.exit-on-deactivate to false in about:config.



来源:https://stackoverflow.com/questions/9550476/allowing-interaction-with-a-second-window-without-breaking-full-screen-in-the-fi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!