Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.swapon.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: Sun, 10 May 2015 18:20:21 +0200 Lines: 35 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 e+YlqVFmqYv8iKJft19iXQV60UXKX3PKdvJ3A7PMxGOssgQj9l Cancel-Lock: sha1:Adj1jaHJ2KObOeJpQL+veOzZEow= 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:27577 On 09.05.2015 20:17, Evertjan. wrote: > =?UTF-8?B?IkrDtnJnIFcuIg==?= wrote on 09 mei 2015 in > comp.lang.javascript: > >> 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. > > So you become sure by reading what I say? > > Better rely on arguments than on authority. > > What about my code, is that satisfactory? > Are "back camera" and "front camera" the names of Android camaras? Can I use these to get a picture or a video? Jörg