Skip to content

Instantly share code, notes, and snippets.

@zoo-of-red-and-blue
Created August 16, 2014 15:35
/**
* 初期化
* @param {Object} option {
* videoElementId: "",
* iceCandidateCallback: function() {},
* dataChannels: [{
* label: 'test channel',
* option: {
* ordered: false, // 順序を保証しない
* maxRetransmitTime: 3000, // ミリ秒
* },
* onmessageCallback: function() {
* console.log("test channel received!!");
* }
* }]
* }
*/
init: function(option) {
this.option = option;
this.peer = null;
this.localStream = null;
this.isStartVideo = false;
this.dataChannels = {};
this.remoteDataChannels = {};
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment