GithubHelp home page GithubHelp logo

piopiy_video_js's Introduction

PIOPIY Video JS SDK for voice

PIOPIY video JS SDK allows you to make and receive video calls, where making video calls can be made to APP to APP,APP to Browser and browser to browser calling.

Get Started

Initializing the PIOPIY SDK Object

The PIOPIY SDK object needs to be initialized.

var piopiy = new PIOPIY( {
        name: 'Display Name',
        debug: false,
        ringTime: 60
    } );

Configuration Parameters

Below is the configuration parameters

Attribute Description Allowed Values Default Value
name Your Display Name in App string null
debug Enable debug message in JS log true, false false
ringTime Your incoming call ringing time in seconds number 60

Login

Validate your login ID and password.

piopiy.login('YOUR_USERNAME','YOUR_PASSWORD');

HTTP status codes

PIOPIY platform represents the following status code to identify the errors.

Status code Description
200 You have Logged in successfully
401 Your Login ID or Password is invalid, Authenication failed
1001 You have already logged in

Make call

Make an video call to other user(SIP or WebRTC entpoind).

piopiy.call('username',{audio:true,video:true});

HTTP status codes

PIOPIY platform represents the following status code to identify the errors.

Status code Description
100 Your outbound call status, status: trying
183 Your Outbound call status, status: ringing
200 Your Outbound call status, status: answered, busy, unreachable, call ended
1002 Your already in a call

Answer call

Answer an incoming call.

piopiy.answer({audio:true,video:true});

HTTP status codes

PIOPIY platform represents the following status code to identify the errors.

Status code Description
183 Your incoming call status, status: ringing
200 Your incoming call status, status: answered, canceled, call ended
1002 Your already in a call

Reject call

Reject an incoming call.

piopiy.reject();

HTTP status codes

PIOPIY platform represents the following status code to identify the errors.

Status code Description
200 Your incoming call status, status: hangup
1002 Currently, there is no ongoing calls

Terminate call

Hangup the ongoing call.

piopiy.terminate();

HTTP status codes

PIOPIY platform represents the following status code to identify the errors.

Status code Description
200 Your ongoing call status, status: hangup
1002 Currently, there is no ongoing calls

Send DTMF digit

Send the digits as dtmf. Digits can be any of the following one character strings: "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "*", "#"

piopiy.sendDtmf(DTMF_DIGIT);

HTTP status codes

PIOPIY platform represents the following status code to identify the errors.

Status code Description
200 DTMF digit received
1002 DTMF not allowed or ongoing call not found
1005 Invalid DTMF type

Mute Call

Mute an incoming or outgoing call.

piopiy.mute();

Unmute Call

Mute an incoming or outgoing call.

piopiy.unMute();

Hold Call

Mute an incoming or outgoing call.

piopiy.hold();

HTTP status codes

PIOPIY platform represents the following status code to identify the errors.

Status code Description
200 Hold your current call
1002 Your call is already on hold or there is no call found to hold

Unhold Call

Mute an incoming or outgoing call.

piopiy.unHold();

HTTP status codes

PIOPIY platform represents the following status code to identify the errors.

Status code Description
200 Unhold your current call
1002 First hold a call to unhold it or there is no call found to unhold

Logout

Logout

piopiy.logout();

HTTP status codes

PIOPIY platform represents the following status code to identify the errors.

Status code Description
200 You have logged out sucessfully
1002 To logout you need to login first

piopiy_video_js's People

Contributors

murugancmi 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.