Giter VIP home page Giter VIP logo

cordova-plugin-rtc-qiniu's Introduction

cordova-plugin-rtc-qiniu

Cordova plugin for RTC/Video conference based on QiNiu Cloud. 基于七牛云实时音视频的视频会议插件.

Support Android/iOS. 支持安卓和苹果.

Please apply for APPID at https://www.qiniu.com/products/rtn . 请先申请你的APPID

Bilby Stampede

Install

cordova plugin add cordova-plugin-rtc-qiniu --variable APIID=YOU_APPID

Useage

if (typeof QNRtc == 'undefined') {
	alert('QNRtc plugin not found');
	return;
}
var appId = 'd8lk7l4ed';
var roomName = 'room711';
var userId = 'user007';
var bundleId = 'com.qbox.QNRTCKitDemo';
var oReq = new XMLHttpRequest();
oReq.addEventListener("load", function() {
	console.log(this.responseText);
	var para = {
		app_id: appId,
		user_id: userId,
		room_name: roomName,
		room_token: this.responseText
	}
	QNRtc.start(para);
});
oReq.open("GET", "https://api-demo.qnsdk.com/v1/rtc/token/admin/"
	+"app/"+appId
	+"/room/"+roomName
	+"/user/"+userId
	+"?bundleId="+bundleId);
oReq.send();

Configuration

XCode

  1. add #import "Plugins/cordova-plugin-rtc-qiniu/QRDPublicHeader.h" to YOUR_PROJECT_NAME-Prefix.pch

Example

At first you need install npm/cordova.

cd ./example
./create-demo.sh

cordova-plugin-rtc-qiniu's People

Contributors

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