Deployed Web ACS Service cannot access camera from Safari on iPhone - azure-communication-services

We are working on building a web application using ACS that would be accessed through the desktop as well as mobile devices. We've found a way to render the local and remote video on the screen from the desktop computers, unfortunately, there is no video stream being transmitted when using the website calling through the iPhone. Not sure if this might be the camera device selection problem, in all instances we use
const videoDeviceInfo = cameras[0];
We then proceed to pass in the videoDeviceInfo into the call that is initiated. Any ideas on what might be missing on safari that's working on the desktop would be highly appreciated!

Related

A/V calls in Conversations (xmpp)

Audio and video calls are work fine When mobile phones are in the same network,
but when mobile phones are in different network audio and video calls are not work,
we implement our own server using http://help.conversations.im/ this reference.
we can't find solution.
What is the solution to this?
You need a secundary server to make these calls, some servers have some pluggins for example openfire has one called PionTURN as a plug. but any TURN server will do it. i recommend "coTURN" then just install discovery pluggin in your server and configure it to point it to your TURN server.

Electron app that opens a server or using sockets over the web

Im making an app that multiple players can connect to, but im brainstorming the best approach.
Im going to be using electron for the interface and then be able to use other computers to log in to website to join the game with multiple players.
I will use sockets to connect to each player, but what i am trying to figure out is whats the best approach for the interface.
Should i use express with electron to somehow connect to the same website the players are on?
Is it possible to make the electron app start up a server and have my website direct to the computer that is running the electron app?
Or my other option was to just continuously upload and download from a database, but I feel like that would not be very efficient.
You're on the right track. I would suggest using a WebSocket based server / client architecture.
The server application is continuously running and handles inter-player communication as well as providing a database. The database could be integrated in the server application as a starting point, and, depending on your needs concerning scalability, be extracted as a standalone service in the long run.
Client applications could then come in many forms (a website, a desktop application, a mobile app). Using electron is a great way to enable cross-platform desktop application development that is adaptable to any of these scenarios, possibly also enabling to extract the contained web application as either a hosted website or even mobile application (using, for example, react-native or nativescript).
Good luck!

How does iTether work (html5 iphone api)

How does something like itether work? Is there an HTML5 api that gives you this level of access to the device? I would assume giving a web based app this much access is a huge security risk.
Tethering's HTML5 app works by by using the iPhone as a proxy server,
so one sets up an ad-hoc Wi-Fi network and runs special desktop software
to direct HTTP traffic to the iPhone.
The HTML5 page loaded onto the iPhone pushes the traffic on and
returns the result, creating tethering without having to get approval
from Apple, or the network operator. ( Original Source )
I think they are using HTML WebSockets detects the presence of a proxy server and automatically sets up a tunnel to pass through the proxy.

Prevent from specific app using internet connection

I have a client claims that my app can't connect to internet despite of he has WiFi connection and Safari application, for example, works fine. Is there any way to setup for specific app NOT to connect to the internet? I use in my app simple ASIHTTTPRequest library to make a connections. Maybe it influenced by jailbroken device? Regards!
No, there is no way to do this in via an iOS setting.
However I've had a problem like this with a client, where to Webservice the app connecting to was blocked by there firewall/proxy.
Later the black was lifted but all calls to the webservice where is cached by the proxy give really weird results.

Can my iPhone app host a Local Web server and allow other apps to the phone to access the LWS?

I will use one of the following cocoahttpserver or iPhoneHTTPServer3, SimpleWebSocketServer, MultithreadedHTTPServer3 to host a server in my app.
Iam aware that a built-in apache is not possible..
Can other apps in the phone make http request to this server hosted locally.
Thanks,
--srihari
Yes, it can be done in a wired way. Cause apple doesn't allow app runing in background offically, however there's one exception that playing music in background is allowed, so you can keep your app running in background with playing a mp3 infinitely. However this is only a workaround, it would consume all your battery quickly.