[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.javascript

smart phone with two camaras / can I select one?

Jörg W.

5/8/2015 9:18:00 PM

Hello,

smart phones and other equipment may have several cameras.
Is it possible to select the better camara with javascript?

Thanks in advance.

Jörg
11 Answers

Evertjan.

5/8/2015 9:37:00 PM

0

=?UTF-8?B?IkrDtnJnIFcuIg==?= <nn@7b5.de> 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.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Christoph M. Becker

5/8/2015 11:52:00 PM

0

"Jörg W." wrote:

> Hello,
>
> smart phones and other equipment may have several cameras.

Indeed.

> Is it possible to select the better camara with javascript?

Maybe.

> Thanks in advance.

You're welcome.

SCNR.

*Please* read <http://www.catb.org/esr/faqs/smart-question... and
try to improve your question accordingly â?? as it's now, it doesn't make
much sense.

--
Christoph M. Becker

Jörg W.

5/9/2015 5:15:00 PM

0

On 08.05.2015 23:36, Evertjan. wrote:
> =?UTF-8?B?IkrDtnJnIFcuIg==?= <nn@7b5.de> 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

Evertjan.

5/9/2015 6:18:00 PM

0

=?UTF-8?B?IkrDtnJnIFcuIg==?= <nn@7b5.de> wrote on 09 mei 2015 in
comp.lang.javascript:

> On 08.05.2015 23:36, Evertjan. wrote:
>> =?UTF-8?B?IkrDtnJnIFcuIg==?= <nn@7b5.de> 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?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Jörg W.

5/10/2015 4:20:00 PM

0

On 09.05.2015 20:17, Evertjan. wrote:
> =?UTF-8?B?IkrDtnJnIFcuIg==?= <nn@7b5.de> wrote on 09 mei 2015 in
> comp.lang.javascript:
>
>> On 08.05.2015 23:36, Evertjan. wrote:
>>> =?UTF-8?B?IkrDtnJnIFcuIg==?= <nn@7b5.de> 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

Evertjan.

5/10/2015 5:17:00 PM

0

=?UTF-8?B?IkrDtnJnIFcuIg==?= <nn@7b5.de> wrote on 10 mei 2015 in
comp.lang.javascript:

> On 09.05.2015 20:17, Evertjan. wrote:
>> =?UTF-8?B?IkrDtnJnIFcuIg==?= <nn@7b5.de> wrote on 09 mei 2015 in
>> comp.lang.javascript:
>>
>>> On 08.05.2015 23:36, Evertjan. wrote:
>>>> =?UTF-8?B?IkrDtnJnIFcuIg==?= <nn@7b5.de> 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?

1
You are not responding to my questions. This NG is not a paid helpdesk.

2
Your latest above Q is not related to Javascript so it is off topic. Asking
off topic Q is not polite on usenet. Please go somewhere else with your Q or
kee pn topic on this NG.



--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Thomas 'PointedEars' Lahn

5/10/2015 5:29:00 PM

0

Jörg W. wrote:

> On 09.05.2015 20:17, Evertjan. wrote:
>> =?UTF-8?B?IkrDtnJnIFcuIg==?= <nn@7b5.de> wrote on 09 mei 2015 in
>> comp.lang.javascript:

Fix your newsreader. And I do _not_ mean only the attribution novel.

>>> On 08.05.2015 23:36, Evertjan. wrote:
>>>> 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?

Your code is a bad joke. It has to be.

> Are "back camera" and "front camera" the names of Android camaras?
> Can I use these to get a picture or a video?

No and no. You do have googled before you asked, have you not?

--
PointedEars
FAQ: <http://PointedEars.... | SVN: <http://PointedEars.de...
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-...
Please do not cc me. / Bitte keine Kopien per E-Mail.

Evertjan.

5/10/2015 8:30:00 PM

0

Thomas 'PointedEars' Lahn <PointedEars@web.de> wrote on 10 mei 2015 in
comp.lang.javascript:

>>> What about my code, is that satisfactory?
>
> Your code is a bad joke. It has to be.

Perhaps a joke, it sometimes looks like your level of humor is very low
if any joke "has to be" a bad one, Pointy.

>> Are "back camera" and "front camera" the names of Android camaras?
>> Can I use these to get a picture or a video?
>
> No and no. You do have googled before you asked, have you not?

It looks like the OP didn't, but either way, it is off topic.

Next thing the OP will ask us advice how to use a boyfriend.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Thomas 'PointedEars' Lahn

5/11/2015 5:44:00 PM

0

Evertjan. wrote:

> Thomas 'PointedEars' Lahn [â?¦]:
>>>> What about my code, is that satisfactory?
>> Your code is a bad joke. It has to be.
>
> Perhaps a joke, it sometimes looks like your level of humor is very low
> if any joke "has to be" a bad one, Pointy.

Well, either it was a bad joke, or I must assume that you have either not
read or not understood the OP. It was about how to *select* one of the
cameras of a mobile device as capturing device.

BTW, â??Pointyâ? is not a proper way to address me, Janni-baby.

> Next thing the OP will ask us advice how to use a boyfriend.

Gibberish.

--
PointedEars
FAQ: <http://PointedEars.... | SVN: <http://PointedEars.de...
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-...
Please do not cc me. / Bitte keine Kopien per E-Mail.

Evertjan.

5/11/2015 5:52:00 PM

0

Thomas 'PointedEars' Lahn <PointedEars@web.de> wrote on 11 mei 2015 in
comp.lang.javascript:

> Evertjan. wrote:
>
>> Thomas 'PointedEars' Lahn [? Ý]:
>>>>> What about my code, is that satisfactory?
>>> Your code is a bad joke. It has to be.
>>
>> Perhaps a joke, it sometimes looks like your level of humor is very low
>> if any joke "has to be" a bad one, Pointy.
>
> Well, either it was a bad joke, or I must assume that you have either not
> read or not understood the OP.

Perhaps you say this because you assume that would hurt me,
because it would hurt you?

Well, you may assume what you like, and may think you must,
so be it.

> It was about how to *select* one of the
> cameras of a mobile device as capturing device.

Yes?

> BTW, ? oPointy? is not a proper way to address me,

Why, and do you decide that?

Janni-baby.

Seems you are getting angry? How interesting.

>> Next thing the OP will ask us advice how to use a boyfriend.
>
> Gibberish.

You are forgiven if you don't understand something.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)