fullscreen

Run a website in fullscreen mode

帅比萌擦擦* 提交于 2019-11-26 16:38:19
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) You can't force a website to display in fullscreen mode. Imagine the security concerns if that were possible. Malicious websites could "Hijack"

How to make browser full screen using F11 key event through JavaScript [duplicate]

假如想象 提交于 2019-11-26 16:29:19
问题 This question already has answers here : Set window to fullscreen (REAL fullscreen; F11 functionality) by javascript (6 answers) Closed 3 years ago . I want to make my browser full screen. Same as when we do F11 key event. I found some examples such as function maxwin() { var wscript = new ActiveXObject("WScript.Shell"); if (wscript!=null) { wscript.SendKeys("{F11}"); } } Which does not work on mozilla or any other latest browsers. Please let me know if there is any way to sort out this

Full screen videoview without stretching the video

老子叫甜甜 提交于 2019-11-26 15:50:35
I wonder if I can get a way to let video run via videoview in full screen? I searched a lot and tried many ways such as: Apply theme in manifest: android:theme="@android:style/Theme.NoTitleBar.Fullscreen" but that does not force the video to be in full screen. Apply in activity itself: requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); also does not force the video to be in full screen. The only way force video to full screen is: <VideoView android:id="@+id/myvideoview" android:layout

How to hide full screen button of the video tag in HTML5

非 Y 不嫁゛ 提交于 2019-11-26 15:49:11
问题 I need to hide the full screen button of the video tag in HTML5. Is there any way to achieve it ? Thanks. 回答1: I think you can accomplish this by changing the css for the #document fragments , these are DOM1 specs and supported by all browsers, but about the styling, I'm not sure. Simple webkit browser (chrome on windows) specific solution The following solution is webkit specific video::-webkit-media-controls-fullscreen-button { display: none; } video::-webkit-media-controls-play-button {}

Win32: full-screen and hiding taskbar

▼魔方 西西 提交于 2019-11-26 15:24:29
问题 I have a window, which I SetWindowPos(window, HWND_TOP, 0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN), SWP_FRAMECHANGED); It covers the whole screen, ok, but it takes a while (0.5 sec) to cover the taskbar as well. Is there a way to come over the taskbar immediately? I found that setting HWND_TOPMOST does it immediately, but it stays above all the other windows, even if I switch the app - this is something I don't want. Also, if I first hide the window and then show it,

How to open a web page automatically in full screen mode

纵饮孤独 提交于 2019-11-26 14:34:54
How do I open a web page automatically in full screen mode? I am looking for a solution to open an web page automatically in full screen mode, without expecting user to users press F11 or any other browser-specifc key. I've searched a lot, but I just could not find a solution. Is there a script or library or browser specific API available to help me achieve this? BrownEyes For Chrome via Chrome Fullscreen API Note that for (Chrome) security reasons it cannot be called or executed automatically, there must be an interaction from the user first. (Such as button click, keydown/keypress etc.)

Android-Video View in Fullscreen

最后都变了- 提交于 2019-11-26 13:46:27
问题 I am trying to make this VideoView to appear in full screen mode : public class ViewVideo extends Activity { private String filename; private static final int INSERT_ID = Menu.FIRST; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); System.gc(); Intent i = getIntent(); Bundle extras = i.getExtras(); filename = extras.getString("videofilename"); VideoView vv = new VideoView(getApplicationContext()); setContentView(vv); vv.setVideoPath(filename); vv

Set window to fullscreen (REAL fullscreen; F11 functionality) by javascript

六月ゝ 毕业季﹏ 提交于 2019-11-26 13:04:33
There are several questions about this, some say it's not possible, some say it IS possible in IE such as Internet Explorer full screen mode? and I'm wondering a universal solution and an answer for this. I'm building a photo gallery webpage, and the gallery really makes out a difference when viewed fullscreen (as the title says, I am talking about true fullscreen, not with bars and window chrome etc), and I would like to place a button for fullscreen. (no, I won't be going forcefully FS without user's intention, I hate that kind of "functionality" too) It IS possible in Flash when initiated

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

江枫思渺然 提交于 2019-11-26 12:40:44
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 save me a ton of effort if I could just stick with HTML5/JavaScript. In iOS 10+ Apple enabled the

How to stop a requestAnimationFrame recursion/loop?

房东的猫 提交于 2019-11-26 12:04:53
问题 I\'m using Three.js with the WebGL renderer to make a game which fullscreens when a play link is clicked. For animation, I use requestAnimationFrame . I initiate it like this: self.animate = function() { self.camera.lookAt(self.scene.position); self.renderer.render(self.scene, self.camera); if (self.willAnimate) window.requestAnimationFrame(self.animate, self.renderer.domElement); } self.startAnimating = function() { self.willAnimate = true; self.animate(); } self.stopAnimating = function() {