Is it possible to make an swf object fullscreen with jquery? [duplicate] - javascript

I need a link to invoke a flash movie (with javascript) that takes the view to full screen, and show the page content. Exactly as if the user has pressed F11. Is there such flash movie?
Edit
This is different from what the flash player does on Youtube and other video sites in that the flash movie has no content to show and after the page goes fullscreen I want the normal page content to be displayed. The only role of the flash object would be invoking the fullscreen mode.

JavaScript (and therefore Flash) does not have access to activating full-screen mode (and thank god it doesn't!).
The best you can do is measure the user's screen size and open a new window that emulates this layout.
See: How to make the window full screen with Javascript (stretching all over the screen)

No. Flash full screen mode (which can only be triggered with a click) is independent from browser full screen mode (which not all browsers have anyway).

Related

How does a flash video player become full screen

I'd like to create a little chrome extension which plays subtitles over full-screened videos.
However, I'm not sure how to have chrome developer tools open while a flash video is fullscreened (so that I can see what's happening in the DOM), or even whether flash full screen somehow bypasses the DOM entirely.
Answers to either question (as to using developer tools, or how fullscreen interacts with the DOM) will be greatly appreciated.
Flash Player's native fullscreen happens separate from the DOM. Flash Player actually creates a new application window that is the size of your monitor. As for getting developer tools open during this, a second monitor may help, but the fullscreen Flash Player window might close itself if it is not the active Window.
It is conceivable that the Flash Player is being fullscreened by a fullscreen DOM element, but this is unlikely. If it says "Press esc to exit full screen" then it is fullscreened through Flash PLayer's native fullscreen.
Unfortunately, unless the SWF is being fullscreened with a fullscreen DOM element, I can't think of a way to add subtitles over the fullscreen player, using the DOM.

How to open IE popup to secondary screen, in FULLSCREEN mode

I need to implement the following feature and make it work in Internet Explorer:
User clicks a link in the primary screen.
A popup will be opened in the secondary screen and in fullscreen mode.
Some requirements:
It must work in IE8 (and 9/10)
For simplicity, we can assume that the secondary screen is located on the right of the primary screen. Also, the resolution of the secondary screen is known.
Javascript is used, but VBScript would be also possible.
So far the prototype is working quite well
the popup is opened with window.open with left=screen.availWidth+1 -> will be opened in the secondary screen OK
the fullscreen mode is activated with Wscript.Shell sendKeys({F11}) trick. This has some random issues. Timing etc will make it fail sometimes.
There are couple of IE-specific problems that make the implementation much more difficult
screen.availWidth returns always the primary screen resolution. E.g. Firefox returns the right size for popups located in secondary screen. Otherwise I could mimic the fullscreen mode by positioning the popup to fill the secondary screen completely.
window.open() with "fullscreen=1" works too but it ALWAYS opens the popup in the primary screen. This happens even if I use timers to make it target to secondary screen. Also a temporary pop-up located in secondary screen does not help. Looks like the fs=1 will always open the window in the screen where the click originated.
And for clarity, this will be implemented for an intranet application and has valid and well justified reasons. There is no point to suggest to try another web browser.
Any ideas that has been proven to work are welcome!

ShadowBox Js - open videos in fullscreen directly

Is there a way to configure shadowBox to open up videos in fullscreen directly? I want this when you surf on the site with a mobile device instead of a popup.
If you are embeding flash based video players then answer is no.
Since there are security restrictions by which you can not call video full screen mode from javascript or from any other place that is outside of flash environment.
But you can make some pseudo full screen by placing your video player in some DIV that has width and height 100% and make some GUI elements and javascript logic to close that DIV on some event like onclick.
In case your video is HTML based, video tag you can call full screen mode from javascript.
More on calling full screen on video tag from javascript can be found here: https://developer.mozilla.org/en-US/docs/DOM/Using_fullscreen_mode?redirectlocale=en-US&redirectslug=DOM%2FUsing_full-screen_mode

Javascript for full screen

is there a javascript script that auto fullscreen mode the browser? example if you visit my site, the browser will auto fullscreen upon load..
Please, don't do this. You shouldn't resize the browser, that's the user's choice to make.
If I have my browser at a certain size, and your site is one of 20 tabs, why should the other 20 be resized?
If you're using window.open() to open a new window and want to specify a size, that's fine, but don't resize the browser. Most browsers actively block this, for a reason.
I looked into this once and like Nick said browsers do not allow you to control setting fullscreen for security reasons e.g. think malicious website recreating the toolbar to trick users. The closest you can get to it is explaining to the user in a ribbon or popup the first time they visit, how to get to fullscreen and letting them make the decision. Then the trick is check for the keypress on f11 assuming that's how you had the user do it.
The only place I wish it was allowed for the site to go fullscreen is webapps.

Exit browser full screen mode when F11 is hit while Flash object is active?

I have a 100% width and height flash object in my site. Activating and exiting browser full screen mode with F11 only works as long the user didn't click the Flash movie. And I doubt many users know they have to click the address bar to enable F11 after using a (browser) full screen Flash movie.
Is there any way I can enable F11 to work if the Flash object is active?
Thanks,
Jan
No, for security reasons Adobe disable all keyboard events while in full-screen mode, you still have full mouse events, but the only key that can change the full-screen mode back to windowed mode is the Esc key.
When switching to full-screen mode a transparent message shows up briefly explaining this before fading away.

Categories

Resources