Can anyone tell me how to access system hardwares like camera, flash light, speaker, microphone using javascript? | SoloLearn: Learn to code for FREE!

+36

Can anyone tell me how to access system hardwares like camera, flash light, speaker, microphone using javascript?

I just want to make a web program with a button in which we can on and off the flash light. if you don't know the answer, don't worry but please don't forget to upvote and share the question so that others can answer it.

1/21/2021 9:39:37 AM

#It's Tony Stark

12 Answers

New Answer

+33

Check out this code on how to access system camera. Google them there are plenty of free tuts. online https://code.sololearn.com/WJOcNpJs5AMl/?ref=app

+23

Pls do a search on the google before posting these questions... why are everyone becoming lazy to search google but simply go and post a question. I did a Google search right now and I found out the answer your looking for. But I think you also should start searching... https://stackoverflow.com/questions/37848494/is-it-possible-to-control-the-camera-light-on-a-phone-via-a-website I am not blaming only you, there are a lot of people doing this. I hope everyone understands...

+19

Maybe you can solve it with home automation. Send a signal to a website using JavaScript. The home automation sends a frequency with this signal. This frequency switches a WCD for example. Think of click on click off.

+5

Aad Hoogenboom😊😊👍 the question is talking about system hardware like mic,speaker,camera,flashlight, geosensor, etc.. and not IoT, embedded ,etc.. I hope this was the question about..

+4

Hmm it is compulsory to learn html css and javascript

+3

https://www.seobility.net/?px=2&a_aid=600598ee12da6

+3

Hi guys .I m bigginer to web development ..it is compulsory to complete all things about html & css or it's ok to know all basing and necessary things about it ??? Will happy if you suggest me ...

+1

Samin Sakur ur wong... If i am right.. #It's Tony Stark said he wanted to access hardware like flashlight which are inbuilt in mobile phones... if you want to access them you should learn javascript... with javascript by accessing browser APIs you can control hardware without any raspberry or arduino...

+1

Steve Sajeev I though #It's Tony Stark is talking about normal harwares

+1

No prob. Happens with everyone...Samin Sakur

+1

Arduino is also used for small projects and you can nearly make a powerful camera drone from arduino uno

+1

As Steve suggests Google and Google Chrome are must for a programmer