Webrtc to remotely control phone camera - webrtc

I am looking for help to take still photos remotely using webrtc. Is there an API that allows access to the other person's rear camera (with permissions) to take photos and save them to my phone? The idea is to use this to take full resolution photos with Android and iOS using react.

Yes you can do this by let them join a channel and then you can send request from your side to ask camera to take picture and then send you back. This is just like message. You sending message from your side to ask other person for taking picture although. If he is using browser then it can be done using js for getting permissions. But in case of a mobile application you can have your own endpoints to interact with channels. I hope you got the basic idea.

Related

I don't want camera permission needed for each video chat when there is a series of 1-1 video chats at an event

I am not a coder and having a web platform built with PHP that includes a series of 1-1 video chats in a scheduled networking "event". The problem that the developer is not able to solve with the video plug in that they are using (https://www.magnoliyan.com/video-chat-pro/) is that the user needs to give camera permisson before each chat. I need this permisson to happen one time only at the beginning of the event and not need there to be any further permission giving throughout the event. Of course I would like this to work on all platforms. I'm exploring agora.io as an option to solve this and replace the current plug in with agora. Does anyone know if agora would be the right fit for this or which video chat platform I should use to accomplish this? And if there is specific developer kind of language or code - please speak in as if I was a developer and I will pass on what you say to him directly. You don't need to worry about whether I will understand it.
Thanks!
Jon
Agora.io like any other WebRTC provider requests device camera permission only once. And all subsequent Videocall won't need any special permission (provided that they are on the same domain)
More specifically, Agora.io requests browser permission when stream.init method is invoked. This also turns on the camera light. stream.close turns off the camera light and deallocates the resources.
However, the subsequent stream.init function calls do not require permissions. (Camera light will just turn on)
References:
stream.init: https://docs.agora.io/en/Video/API%20Reference/web/interfaces/agorartc.stream.html#init
stream.close: https://docs.agora.io/en/Video/API%20Reference/web/interfaces/agorartc.stream.html#close

Voice call connection routing React-Native

I am trying to build an application which works this way: I as a user want to start a call with another user. The way I want the connection be made is by random. So it will connect to one of the many clients out there by random. Also when other clients try to make a call, it should connect to another random client and so on. I want those phone calls be made via application(such as WhatsApp) not as a phone call.
Now, the question is; is Twilio a good approach for this purpose?
If yes can you tell me which of their feature would fit my app the best?
Thanks for any suggestions!
Twilio developer evangelist here.
I can answer that Twilio would be a good approach for you to do this within your own application. I'd recommend using Twilio Video to build this as it allows cross platform communication via audio or video (in your case, you may not need the video, but this will give you the best audio quality).
As an example, my colleague Dominik built a video roulette application. It is the case that the interface was built in JavaScript for the web, but the idea would be the same for a native app. The code for the server side part of the application should give some insight into how to connect random pairings.
It's also possible to integrate Twilio Video with CallKit and Connection Services so that you can make outbound calls to other devices that ring like a real incoming call.

Is there a way to send multiple wifi camera a signal to take a picture at the same time?

I have 20 wifi cameras that are compatible with the camera remote api (all identical).
Using the API, is it possible to trigger all of them over wifi to take a picture at the same time?
I would basically like to trigger all 20 over wifi and then fetch the pictures from all of them. So any suggestions for how to do that would be appreciated. Mainly just triggering them together would be a great start.
Also, is it possible to send commands to the camera with the API when the camera is connected to a network via the play memories camera app or can commands only be sent via connections with the Smart Remote Control? Reason being, I can have multiple cameras connect to my network this way, but via the smart remote, I can only connect to a single pc to camera at a time as the camera acts like the hot spot instead of the other way around.
Thanks,
-Scott
That would be possible but since it's only possible to connect one camera to one phone at a time, you would need 20 phones as well and then you could send the command to take a picture to all the phones which would in turn trigger the camera connected to each one.
It is not possible to send commands to the camera other than by using the Camera Remote API.
It would appear that some cameras use WPS to make outgoing connections (ie. when using 5 AZ1 with LiveViewRemote)....
If you had such a camera maybe you could connect them all to the same WiFi router, and then use the API to initiate a connection to all at the same time and quickly tell each to take a picture in quick succession.
Here's a link which might help you get there:
https://github.com/Bloodevil/sony_camera_api/issues/8

Quickblox Sample webrtc video chat not working

I'm trying to implement a webRTC based video chat example. I've taken a look at Quickblox and their solution. In particular, I've given their online demo a test run: http://quickblox.github.io/sample-webrtc-web/
I've opened two tabs in Chrome logged in as different users. It does not seem to work. Does this work for anyone else? Besides that, it looks like a great solution to what I'm trying to achieve so I'm hoping it is just a wrong setting with my computer.
P.S. I can see the local video stream (i.e. my own face staring back at me in the mini view, but the place where I should be able to see the remote user is black).

What is the API to delete a photo using the Sony Camera Remote API?

Is it possible to delete images remotely using an API call for Sony cameras that support the Sony Camera Remote API?
Taking pictures is not possible once the camera memory card gets full and there seems to be no way provided to remotely delete images or erase the card. This is with the HDR-AS100, I assume other cameras have similar limitation.
If not possible here are two solutions that would resolve the issue for us:
Provide an API to enumerate/read/delete images stored on the camera memory card, or at the very least allow for an API to delete the picture returned by actTakePicture
Have an option in actTakePicture to specify not to store the image on the memory card, at least not permanently. i.e. erased once next picture is taken.
There is currently no API to do this unfortunately. We appreciate the feedback though and I will pass this on to our API team as a suggestion.