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


Groups > comp.lang.javascript > #31717 > unrolled thread

Peripheral access on mobile

Started bybit-naughty@hotmail.com
First post2016-11-14 05:17 -0800
Last post2016-11-15 18:17 +0700
Articles 5 — 5 participants

Back to article view | Back to comp.lang.javascript


Contents

  Peripheral access on mobile bit-naughty@hotmail.com - 2016-11-14 05:17 -0800
    Re: Peripheral access on mobile Tim Slattery <tim@risingdove.com> - 2016-11-14 10:40 -0500
      Re: Peripheral access on mobile Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-11-14 17:59 +0100
        Re: Peripheral access on mobile "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-11-15 23:51 -0800
    Re: Peripheral access on mobile JJ <jj4public@vfemail.net> - 2016-11-15 18:17 +0700

#31717 — Peripheral access on mobile

Frombit-naughty@hotmail.com
Date2016-11-14 05:17 -0800
SubjectPeripheral access on mobile
Message-ID<42dacdf0-1e67-4f2e-89c0-26fad7443da8@googlegroups.com>
I've asked this question here before, but.... what progress on letting mobile Firefox access the mic, GPS etc?




Thanks.

[toc] | [next] | [standalone]


#31718

FromTim Slattery <tim@risingdove.com>
Date2016-11-14 10:40 -0500
Message-ID<mkmj2ch33jbnond5r7bfieqoqchs6q63sm@4ax.com>
In reply to#31717
bit-naughty@hotmail.com wrote:

>I've asked this question here before, but.... what progress on letting 
>mobile Firefox access the mic, GPS etc?

I don't know about the mic, but there's been a geolocation facility in
HTML5 for quite a few years now.
http://www.w3schools.com/html/html5_geolocation.asp or google it on
your own.

-- 
Tim Slattery
tim <at> risingdove <dot> com

[toc] | [prev] | [next] | [standalone]


#31721

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2016-11-14 17:59 +0100
Message-ID<1651717.tdWV9SEqCh@PointedEars.de>
In reply to#31718
Tim Slattery wrote:

> bit-naughty@hotmail.com wrote:
>> I've asked this question here before, but.... what progress on letting
>> mobile Firefox access the mic, GPS etc?
> 
> I don't know about the mic, but there's been a geolocation facility in
> HTML5 for quite a few years now.
> http://www.w3schools.com/html/html5_geolocation.asp or google it on
> your own.

As I have said many times before, W3Schools is not a reliable development 
resource, and this is just one more example of that.  

“navigator.geolocation.getCurrentPosition()” does _not_ throw an exception 
except when the method itself is not implemented, and probability of that is 
low if, as the previous test ascertained, “navigator.geolocation” is a true-
value.  So the example code and the explanation there are bogus.  Instead, 
the second argument to getCurrentPosition() can be a reference to a function 
that is called if an error occurs.

Also, Geolocation support stopped working in Chrome for sites that were not 
served via HTTPS recently (there is a message in the console saying that if 
you do not provide an error callback; otherwise the “message” property of 
the PositionError instance says so), and the same appears to be true for 
(Mobile) Firefox.  That is, if getCurrentPosition() is called in Firefox, 
user authorization is requested, but if confirmed, nothing happens; in 
Chrome, not even the authorization dialog is displayed.  (I have seen that 
on the homepage of my Web site which is not served via HTTPS yet.)

<https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/Using_geolocation>

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

[toc] | [prev] | [next] | [standalone]


#31726

From"Michael Haufe (TNO)" <tno@thenewobjective.com>
Date2016-11-15 23:51 -0800
Message-ID<f1796b19-a3d2-4e5c-b439-eb76d972c0bb@googlegroups.com>
In reply to#31721
On Monday, November 14, 2016 at 10:59:56 AM UTC-6, Thomas 'PointedEars' Lahn wrote:

> As I have said many times before, W3Schools is not a reliable development 
> resource, and this is just one more example of that.  

+1000

[toc] | [prev] | [next] | [standalone]


#31723

FromJJ <jj4public@vfemail.net>
Date2016-11-15 18:17 +0700
Message-ID<4e0rpx5uz32r.ut2gpncl8hun.dlg@40tude.net>
In reply to#31717
On Mon, 14 Nov 2016 05:17:34 -0800 (PST), bit-naughty@hotmail.com wrote:
> I've asked this question here before, but.... what progress on letting mobile Firefox access the mic, GPS etc?
> 
> Thanks.

Mic and camera can be accessed from MediaDevices.

<https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices>

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web