12

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/

Community
  • 1
  • 1
Manza
  • 3,427
  • 4
  • 36
  • 57

2 Answers2

3

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!

Summer
  • 488
  • 4
  • 14
  • Right now I have a better understanding of how WebRTC works, I'm building from zero signaling server with node and socket.io. Then I'll try to do it on android. – Manza May 06 '14 at 10:25
  • Did you manage to set it up using the apprtc client + peerjs server? – Ignas Feb 06 '15 at 07:06
  • @Ignas I managed to build up a webrtc example with peerjs and my own HTML/JS code. I did not use the apprtc as the client. – Summer Feb 06 '15 at 19:25
  • did yu succeed in building apprtc with custom socket io server??? Even i tried accessing signaling.simplewebrtc.com signaling server by deploying it locally. I used socket io and engine io wrapper. but my socket request is rejected. – Ajitha Apr 09 '15 at 11:36
2

Actually you can deploy web version of https://apprtc.appspot.com/ to your own server.

It's written on GAE (Google App Engine) - http://webrtc.googlecode.com/svn/trunk/samples/js/apprtc/ This has been moved to branches folder http://webrtc.googlecode.com/svn/branches/3.53/samples/js/apprtc/

Just register GAE account https://appengine.google.com/ and deploy this web app to it.

Next - you can connect WebRTC Android sample to you own GAE server - https://code.google.com/p/webrtc/source/browse/trunk/talk/examples/android/src/org/appspot/apprtc/AppRTCDemoActivity.java

Find line

roomInput.setText("https://apprtc.appspot.com/?r="); 

and replace apprtc server name

Abhijeet
  • 8,561
  • 5
  • 70
  • 76
Rubycon
  • 18,156
  • 10
  • 49
  • 70
  • First, thanks for answers, I have a question: - How exactly I can deploy that app on my own server? – Manza Apr 01 '14 at 15:57
  • Please read this https://appengine.google.com . You will find all info how to deploy GAE app to your server – Rubycon Apr 02 '14 at 12:55
  • 1
    How to run it with out GAE? Because with GAE same http/https services we have to pay, we do not want to pay for it. How can i we use it in that case without GAE? –  May 23 '14 at 06:29
  • It's a bit hard - you have to completely rewrite sample and replace GAE with something else as a signalling. – Rubycon May 23 '14 at 10:16
  • The links are down. – Fernando Torres May 15 '17 at 13:45