Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #16807
| From | "J.R." <groups_jr-1@yahoo.com.br> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: How to detect fullscreen |
| Date | 2012-10-22 19:21 -0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <k64ddh$mm8$1@speranza.aioe.org> (permalink) |
| References | <5084e67d$0$16468$426a74cc@news.free.fr> |
On 22/10/2012 04:24, jmrw wrote:
> For my slideshow
> http://www.jmrw.com/France/Strasbourg/diaporama/index.htm
>
> I want the picture centered when fullscreen is used.
> Is there a way to detect fullscreen?
There is an experimental technology in Firefox for detecting if an
element is in full screen mode:
<https://developer.mozilla.org/en-US/docs/DOM/document.mozFullScreenElement>
You may test in FF / Chrome console something like:
if (document.mozFullScreenElement) { // FF
console.log('Your video is playing in fullscreen');
}
or if (document.webkitFullscreenElement) { // Chrome and Safari ? }
--
Joao Rodrigues (J.R.)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to detect fullscreen "jmrw" <jmrw@free.fr> - 2012-10-22 08:24 +0200
Re: How to detect fullscreen dann90038@gmail.com - 2012-10-22 13:53 -0700
Re: How to detect fullscreen "J.R." <groups_jr-1@yahoo.com.br> - 2012-10-22 19:21 -0200
Re: How to detect fullscreen SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-10-25 00:16 +0200
csiph-web