Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use AppRTC with a custom server

Tags:

android

webrtc

I've successfully build the AppRTC for android and I'm able to make videocalls providing the address of the demo app ( https://apprtc.appspot.com/?r=XXXXXXXX )

My question is, how can I make this app work with a custom WebRTC server OR with another WebRTC app ( e.g. https://talky.io/)

I'm a little bit confused about how to achieve this. I've also followed the tutorials HERE and I'm able to make calls between desktop browser but I have no idea how to connect from the android app.

P.S.

If someone is interested I've built the app following the following links:

WebRTC : ninja build not working (see the comments)

http://simonguest.com/2013/08/06/building-a-webrtc-client-for-android/

like image 276
Manza Avatar asked Apr 01 '14 14:04

Manza


1 Answers

You can achieve webrtc with your own server.

Several steps to follow:

1.Build your own HTTP server to provide the html service(i.e. the main page of your webRTC project instead of apprtc main page). In this step I use node.js and node-static(https://github.com/cloudhead/node-static).

2.Build your own signalling server. PeerJS is a good choice. Read the doc files. Also, code you HTML file to support peerjs.

Here is an example of peerjs implementation. It helped me a lot

https://developer.mozilla.org/en-US/demos/detail/peerjs

Goodluck!

like image 97
Summer Avatar answered Oct 21 '22 18:10

Summer