Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #16807

Re: How to detect fullscreen

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail
From "J.R." <groups_jr-1@yahoo.com.br>
Newsgroups comp.lang.javascript
Subject Re: How to detect fullscreen
Date Mon, 22 Oct 2012 19:21:55 -0200
Organization Aioe.org NNTP Server
Lines 21
Message-ID <k64ddh$mm8$1@speranza.aioe.org> (permalink)
References <5084e67d$0$16468$426a74cc@news.free.fr>
NNTP-Posting-Host XLBPR4R5QGGnL348clypxg.user.speranza.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1
X-Notice Filtered by postfilter v. 0.8.2
Xref csiph.com comp.lang.javascript:16807

Show key headers only | View raw


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


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