Allow chrome to access microphone for local html file

4,169 views
Skip to first unread message

Ryan Andrew

unread,
Dec 29, 2016, 10:50:14 PM12/29/16
to Chromium-dev
I am trying to run a html file off my laptop that I have created. However, I cannot use chrome to test it as it is blocking access to my microphone. (Which I need) I have read that it is blocked because chrome automatically blocks: file:/// from accessing microphone/camera. Is there any way to get around this?

Thank you very much.

PhistucK

unread,
Dec 30, 2016, 3:11:01 AM12/30/16
to skyl...@gmail.com, Chromium-dev
I am not sure you can get around it. Perhaps with the really dangerous --disable-web-security (strongly not recommended, especially if you use this instance of Chrome for normal browsing as well, which can put your device in danger) and --allow-file-access-from-files (also not recommended).

But what about using a simple web server instead?
The simplest choice might be the Python one (running python -m SimpleHTTPServer in the directory of the HTML file).

file:// URLs have many limitations into which you may run, so it is generally not a recommended way of loading documents.


PhistucK

On Fri, Dec 30, 2016 at 5:50 AM, Ryan Andrew <skyl...@gmail.com> wrote:
I am trying to run a html file off my laptop that I have created. However, I cannot use chrome to test it as it is blocking access to my microphone. (Which I need) I have read that it is blocked because chrome automatically blocks: file:/// from accessing microphone/camera. Is there any way to get around this?

Thank you very much.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.

Ryan Andrew

unread,
Dec 30, 2016, 5:09:39 AM12/30/16
to Chromium-dev, skyl...@gmail.com
Thank you PhistucK, 
but does this mean it goes live and will other people see my work with the correct address by using: "--m SimpleHTTPServer"?
Sorry I just need to know.


PhistucK

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.

PhistucK

unread,
Dec 30, 2016, 7:39:07 AM12/30/16
to skyl...@gmail.com, Chromium-dev
No, it is a local server, as far as I know.
(It will surely not be accessible by going to a domain name. If anything, people will have to use your IP and the right port and that will go through only if you do not have a router or a firewall to prevent it)


PhistucK

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.

wus...@gmail.com

unread,
Nov 23, 2017, 4:54:20 AM11/23/17
to Chromium-dev, skyl...@gmail.com
you can put local html page to tomcat, and run tomcat, that's ok.  i just do it

在 2016年12月30日星期五 UTC+8上午11:50:14,Ryan Andrew写道:
Reply all
Reply to author
Forward
0 new messages