Wednesday, June 26, 2013

Android : Overview on WebRTC android Client with peer-to-peer support (libjingle)

WebRTC code, located in https://webrtc.googlecode.com/svn/trunk, contains only the video and audio codec, the RTP stack. On the other hand, the libjingle project has the stacks of XMPP, STUN and ICE implementation. It also uses the API of WebRTC. Libjingle project bundle has a android ndk project AppRTCDemo which can be used as application (.apk) on android device. Unlike WebRTCDemo (android project from WebRTC), this AppRTCDemo android project has libjingle's Peer-Connection module attached to it. So this android app can communicate with each other from different networks via p2p connection. To initiate p2p connection with other client, it communicate with http://apprtc.appspot.com server using Google App Engine Channel API. 
If you want to write your own server you may try node.js and replace the google's Channel 
api code with your own signaling code in AppRTCDemo. The AppRTCDemo can be built on ubuntu by following the instructions on this link. Make sure JAVA_HOME is properly configured in the class-path. It also provides the info on how to install the app on android device.

No comments:

Post a Comment