![]() ![]() tAttribute("playsinline", true) // required to tell iOS safari we don't want fullscreenĬanvasElement.height = Height Ĭanvas.drawImage(video, 0, 0, canvasElement.width, canvasElement.height) ![]() Get the environment camera (usually the second one) Besides, the phone flashlight doesn't work as well.Ĭonst SUPPORTS_MEDIA_DEVICES = 'mediaDevices' in navigator However, after I turned on the flashlight, closed the web app, and reopened it again, the flashlight wasn't working anymore.įor iOS, the camera seems to be turned on, but I can't view anything through the web app. I had managed to turn on a phone camera, but I faced some difficulties regarding to turning on the phone flashlight on a different platform which is Android and iOS.įor Android OS, I had managed to turn on the phone camera on my web app, and was also able to turn on the phone flashlight right after the camera has been turned on. I had created a web app that is able to scan QR codes using a phone camera. I would like to ask how to turn on a phone flashlight on a web app using JavaScript and HTML. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |