Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news-peer.in.tum.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: =?UTF-8?B?IkrDtnJnIFcuIg==?= Newsgroups: comp.lang.javascript Subject: Re: smart phone with two camaras / can I select one? Date: Sat, 09 May 2015 19:14:59 +0200 Lines: 24 Message-ID: References: Reply-To: nn@7b5.de Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net fjfi7Uf6aoo8krK8dgJVRAKSUe/u7zjTcNEEg8dPr9gG6clYUF Cancel-Lock: sha1:NT066yZucBmCzDNKkj6q5pT9qsc= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 In-Reply-To: Xref: csiph.com comp.lang.javascript:27572 On 08.05.2015 23:36, Evertjan. wrote: > =?UTF-8?B?IkrDtnJnIFcuIg==?= wrote on 08 mei 2015 in > comp.lang.javascript: > >> smart phones and other equipment may have several cameras. >> Is it possible to select the better camara with javascript? > > While a bit camera obscura, > because of the subjective nature of "better", > and your specification of "other equipment", > it can be done: > > var better = true; // or !true > var selected = (better) ?"back camera" :"front camera"; > > However using javascript in a browser probably not. > That's bad. I want to be sure, the camara is always the one for landscape, not the selfy-cam with low resolution. Thanks Jörg