menu
Here we have made a Connection class to keep up with all our attachment and companion association,
Here we have made a Connection class to keep up with all our attachment and companion association,
we have a constructor that gets a settings object (discretionary) that can be utilized to send a few information from our part for setting up our association class like (sending video edge to be utilized)

Here we have made a Connection class to keep up with all our attachment and companion association, Don't stress we will stroll through every one of the capacities above. 

we have a constructor that gets a settings object (discretionary) that can be utilized to send a few information from our part for setting up our association class like (sending video edge to be utilized) 

Inside constructor we are conjuring two strategies initializeSocketEvents() and initializePeersEvents() 

initializeSocketEvents() - Will begin attachment association with our backend. 

initializePeersEvents() - Will begin peer association with our companion server. 

Then, at that point, we have setNavigatorToStream() which has getVideoAndAudio() work which will get the sound and video transfer from the pilot. We can indicate the video outline rate in the pilot. 

On the off chance that the stream is accessible, we will resolve in .then(streamObj) and presently we can make a video component to show our transfer bypassing stream object to createVideo(). 

Presently in the wake of getting our own stream it's an ideal opportunity to pay attention to the companion occasions in work setPeersListeners() where we will tune in for any approaching video transfer from another client and will stream our information in peer.answer(ourStream). 

Furthermore, the we will set newUserConnection(), where we will send our stream, in case we are interfacing with the current room and furthermore monitoring the current friend association by userID in peers Object. 

At long last we have removeVideo to eliminate the video component from dom when any client dissconnected. 

 Now the backend needs to pay attention to the attachment association. Utilizing attachment "socket.io" to make the attachment association simple.

Read More About : video call api for android