fullscreen

Detecting if a browser is in full screen mode

你离开我真会死。 提交于 2019-12-17 05:05:11
问题 Is there any way of reliably detecting if a browser is running in full screen mode? I'm pretty sure there isn't any browser API I can query, but has anyone worked it out by inspecting and comparing certain height/width measurements exposed by the DOM? Even if it only works for certain browsers I'm interested in hearing about it. 回答1: Chrome 15, Firefox 10, and Safari 5.1 now provide APIs to programmatically trigger fullscreen mode. Fullscreen mode triggered this way provides events to detect

Run a website in fullscreen mode

ε祈祈猫儿з 提交于 2019-12-17 04:06:48
问题 I am looking for a trick to put my website in fullscreen mode without human interaction. I've found some examples using HTML5's techniques, but all of then needs to be triggered by a human interaction. This website will be displayed in a TV ... I already think in load the website using a SWF file in fullscreen mode, but instead of going to this direction, I would like to stress all possibilities using just the default pattern (html, css and javascript) 回答1: You can't force a website to

Run a website in fullscreen mode

时光毁灭记忆、已成空白 提交于 2019-12-17 04:06:17
问题 I am looking for a trick to put my website in fullscreen mode without human interaction. I've found some examples using HTML5's techniques, but all of then needs to be triggered by a human interaction. This website will be displayed in a TV ... I already think in load the website using a SWF file in fullscreen mode, but instead of going to this direction, I would like to stress all possibilities using just the default pattern (html, css and javascript) 回答1: You can't force a website to

Can I avoid the native fullscreen video player with HTML5 on iPhone or android?

爱⌒轻易说出口 提交于 2019-12-17 02:33:24
问题 I've built a web app that uses the HTML5 tag and JavaScript code that renders other content synchronized with the running video. It works great in desktop browsers: Firefox, Chrome, and Safari. On an iPhone or a DroidX, the native video player pops up and takes over the screen, thus obscuring the other dynamic content that I want to display simultaneously with the video. Is there any way around this? If necessary, I'll figure out how to write native apps for both those platforms, but it would

How to hide navigation bar permanently in android activity?

[亡魂溺海] 提交于 2019-12-17 02:27:15
问题 I want to hide navigation bar permanently in my activity(not whole system ui). now i'm using this piece of code getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION); It hides the bar but when user touches the screen it showing again. is there any way to hide it permanently until activity onStop() ; 回答1: Snippets: FullScreenFragment.java HideNavigationBarComponent.java This is for Android 4.4+ Try out immersive mode https://developer.android.com/training/system

JFrame in full screen Java

我只是一个虾纸丫 提交于 2019-12-17 02:10:44
问题 I will be doing a project soon and I will have to use full screen mode in it. It will draw some graphics in the window. It would be convienient if I use JFrame or something similar. I don't know what the final resolution of the screen will be. Please tell me if the graphics will be automaticly rescaled? JFrame jf = new JFrame(); jf.setSize(1650,1080); //make it fullscreen; //now is everything is going to be rescaled so it looks like the original? 回答1: Add: frame.setExtendedState(JFrame

Blocking status bar in top down swiping

扶醉桌前 提交于 2019-12-14 01:38:55
问题 I've a full screen application covering the entire screen, top status bar included. Since a top / down swipe is enabled to show some options to the user, it happens that swiping from top to down, the status bar is showing (as when you want to see notifications and swipe top down). Is there a way to avoid this ? 回答1: Use type TYPE_SYSTEM_ERROR for WindowManager.LayoutParams, to create hide impossible fullscreen view. Swipes for show status bar and navigation will be blocked. @Override

OpenGL tearing with fullscreen native resolution

不想你离开。 提交于 2019-12-13 17:08:52
问题 I've got an OpenGL application with win32 api without glut etc...and I run into a problem with screen tearing in fullscreen. Basicly I have set WS_POPUP as a window style and resolution of my monitor as window size. I'm running on AMD radeon HD 7770 and I see terrible tearing! When I put WS_POPUPWINDOW style instead of WS_POPUP , the tearing is gone, however I have unwanted border around my scene. Another thing I noticed is fact, that the tearing disappears when the resolution is NOT native.

How to share textures between an NSOpenGLView and a full screen context in Mac OS?

社会主义新天地 提交于 2019-12-13 14:42:10
问题 I am working on an app that uses 2D textures to create animated kaleidoscopes. It starts out displaying to an NSOpenGLView. I am adding an option to switch to full-screen mode. I would prefer to use the OS 10.5 approach to full screen so I can support 10.5, but I think I would face the same issue if I was using the approach described in the docs under "Creating a Full-Screen Application in Mac OS X v10.6". The NSOpenGLContext init method initWithFormat:shareContext: takes an optional pointer

Alt-tab from fullscreen SDL

ぃ、小莉子 提交于 2019-12-13 14:13:59
问题 When I run a fullscreen window (C++ with SDL using the SDL_FULLSCREEN flag), alt-tab has no effect. Researching it, I only found posts of people having problems with it. Is there a way to do it consistently across different machines? (I'm running Ubuntu now, but I'd like portability) Does OpenGL handle this better? (considering switching) 回答1: SDL likes to XGrabKeyboard() when fullscreened on X11. This tends to lock out your window manager's hotkeys. Fix SDL or fix your window manager. 来源: