/datachannel_test3.js Secret
Created
August 16, 2014 15:35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 初期化 | |
* @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