Giter Club home page Giter Club logo

callservice-sample's Introduction

Video Calling library for Android - Sample Application

Download

Features

  • Easy to use library for Android
  • No need to own or configure any server
  • Single API call to Initiate, Receive or Decline a call
  • Works for Video and Audio calls
  • Configurable Video/Audio quality
  • No charges

Sample Application

This is a very basic sample application, for making and receiving a video call. Below are different classes of the app and it's usage:

  • Main Activity
    • User Interface for Registration and Initiating a call
    • Registration is an one-time activity
    • User IDs should be unique per application
  • Outgoing and Incoming Call Activity
    • UI for call negotiation
  • Call Events
    • IntentService and Broadcast receiver for call events

Examples

Here are basic functions for making a video call:

Initiate a Call

CallService.getDefaultInstance().initiateCall(remoteId, this, new CallService.Callback() {
    @Override
    public void onError(Exception error) {
	    // handle errors here
	}
	@Override
    public void onSuccess() {
	    // there you go, request is sent
	}
});

Respond to a call request

CallService.getDefaultInstance().callResponse(remoteId, true, this, new CallService.Callback() {
    @Override
    public void onError(Exception error) {
	    // handle errors here
	}
	@Override
    public void onSuccess() {
	    // all set, will start streaming
	}
});

Register first

CallService.getDefaultInstance().register(userId, GOOGLE_CLOUD_PROJECT_ID, MainActivity.this, new CallService.Callback() {
    @Override
    public void onError(Exception error) {
	     // something went wrong
	}
	@Override
    public void onSuccess() {
	    // done, you can make/receive call now
	}
});

Get Library

AAR

Get the library access

You'll need to send an email to [email protected] with following details:

  • Your Application Package Name
  • SHA1 fingerprints of debug and release keys
  • Google Cloud Project Number (Do not use this project for any other purpose)
  • API key for server application, for public access (from the same Google Cloud Project)
  • Your contact email address

callservice-sample's People

Contributors

sandeep5193 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.