Skip to content

WebRTC android VIdeo using gcm for signalling between 2 peers before video calling starts

Notifications You must be signed in to change notification settings

jolsondc/Web-RTC-using-GCM-android

Repository files navigation

WebRTCusingGCM

###Video/Audio Calling using WebRtc library. Implementation of Webrtc without having 3rd party dependency of socket io server and all, instead implementing using GCM which does pretty much same work of delivering signalling data before starting video calling.

Signalling done with GCM/FCM .since it is API call .will be slow in signalling. but accurate enough to deliver signal(gcm notification) to the peer device.

public class MyApplication extends Application {
    private String buddy="GCM token of other phone";
    private String FIREBASE_KEY="key=Legacy server key (You should find this in Firebase project setting)";
    private String ICE_SERVER_HEADER="Basic aksdjkabdkasndklamsdlamsldnlakndansldnklasndklandlanasd";
    }
  • buddy - will be GCM token of second peer always
  • FIREBASE_KEY - find this key in firebase project setting. need this for calling fcm api to post gcm notification to 2nd peer and vice versa
  • ICE_SERVER_HEADER - register at https://global.xirsys.net for ice servers. and get the header and paste here.

NOTE: Register your project in firebase to create google-services.json file. after addding in your project. compile. and enjoy!!!

Contributing to WebRtcUsingGCM

Just make pull request. You are in!