Martins
For this you will need a communication between the two you may have to create a server that communicates this or use a ready with API. For example, Nexmo provides a voice and video channel. This is called Webrtc.
When using the camera you need to know what your project needs, there are applications for native and hybrid phones. I use hybrid today with a project called Cordova, but I’m also starting a project in Kotlin.
Knowing this to connect the two points you will need a Webrtc if using nexmo they have SDK for connection to any language like : PHP, Javascript among others.
I’m being very shallow on the subject because these are completely different topics that require in-depth study but I’m going to put in a few technologies for you to take a look at and go deeper.
- Webrtc;
- Websocket;
- Ionic;
- Cordova;
- React Native;
- Kotlin;
- Opentok;
Go deep I’m sure seeing all these things will start to connect the dots to get where you need.