Is it possible to turn the camera LED on of a device from the browser? - webrtc

We are implementing a javascript library that uses the camera of the device on mobile web browsers. It was working well on Android using Chrome and some versions of the default Browser app. Since iOS 11 and Safari 11, we are able to access the camera on iOS too.
I was wondering if we can use this API to turn on the LED flashlight of the device. And in what platforms and browsers would that work.

Related

Stream video from a stand alone desktop application(not browser) to a remote desktop application(not browser)

I'm trying to build a live video streaming application from a usb camera to an application running on a remote desktop. I've researched protocols like RTMP, RTSP, WebRTC. According to my understanding I can't use webRTC since it's only compatible in the browser and I'm not building my application for a browser here. Please help me choose the right protocol and also the media server.
You can, and many applications do, use WebRTC outside the browser. WebRTC implementations are available for many different platforms including iOS, Android and embedded systems.
You can even use Headless Chrome if you want to use the Chrome APIs without the visual parts of the browser.

What is the difference between web and app network status in same device

It seems like that my iOS App loses packets but in website (in Chrome) does not in same device. Is there any notable differences in network status between web and app in a same device?
The circumstances are in iPhone, iPad, Chrome, react-native.
Network info api in react-native is not quite useful in this situation.

How do I swap my app between desktop mode and Modern UI mode? [duplicate]

How does Google Chrome make a hybrid app (i.e. one that works on the desktop and one that works out of the Modern UI, and that are switchable)? What new Windows API do they call?
The only applications that can be "hybrid" are browsers. See here (link to Microsoft whitepaper on making a browser desktop and metro enabled).

jWebSocket on mobile browsers

I've developed a web application which uses jWebSocket.
I've put it together on an Apache Server and accessing the site with a desktop browser works fine.
But it's not working on mobile browsers, that is, I can see the static website but no dynamic changes are made (using WLAN; on a laptop using the same WLAN everything works). The required ports can be reached but no connection is being established with the jWebSocketServer.
I've tested it on iPhone with Safari 6 and on Android phone 2.3 with WebKit browser and Opera 12.
At least Safari and Opera natively support WebsSockets, so I wonder if there's a general difference between mobile and desktop browsers regarding this functionality?
(On the Internet, I found nothing about mobile web apps with jwebsocket, there are clients for native apps but this doesn't suit my need.)
Thanks in advance!

How to Test Sencha Touch apps in windows

So I am developing a Sencha Touch application in Windows. I want to test how this is going to behave on iPhone/Android/BlackBerry phones.
I'd rather not make it public just to test it by navigating to it from each OS physically, although I will be doing that before our official release. How can I emulate the phones on windows. Is there anything I can use to emulate Blackberry/iPhone on a windows machine just to test how the web page is going to be rendered in those devices?
I know the Android emulator I can run through Eclipse, but what about the other two?
You need a Mac to run the iPhone/iPad simulator. Blackberry can be done on windows though: http://www.blackberry.com/developers/downloads/simulators/
You might also consider delivering them to these devices as apps using phonegap, which plays nicely with sencha touch.
If you just want to see how the app would look and behave while developing, just use Google Chrome. You can enable the very good 'developer tools' to do various checks.
Install and run on Ripple Chrome Extension
Check out the number of devices / platforms it supports
...
...
iPhone 3G / 4
iPad
Nexus One
Nexus S etc..
In order to start developing applications using Sencha Touch, it is highly
recommended that you have a working web server where you can host your
application. It's possible to develop Sencha Touch applications, viewing local
folders with your web browser. Without a web server you won't be able to test
your application using any mobile devices.
You can run the application on your web browser by using:
http://localhost/your_app_folder
Using Safari web browser to examine your Sencha Touch application during
development, and the Safari Web Inspector is a huge part of that. Both Chrome
and Firefox have similar tools (Chrome Developer Tools and Firebug for Firefox),
but as iOS devices use Safari for their web browser.