Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added roomName in createdPeer event #405

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
.DS_Store
npm-debug.log
.idea
23 changes: 23 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "simplewebrtc",
"description": "World's easiest webrtc",
"main": "./simplewebrtc.bundle.js",
"authors": [
"csturiale <[email protected]>"
],
"license": "MIT",
"homepage": "https://github.com/objectway/SimpleWebRTC",
"moduleType": [
"node"
],
"private": true,
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"src/bower_components",
"test",
"tests"
],
"version": "2.1.8"
}
13 changes: 7 additions & 6 deletions latest-v2.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simplewebrtc",
"version": "2.1.0",
"version": "2.1.3",
"repository": {
"type": "git",
"url": "[email protected]:henrikjoreteg/SimpleWebRTC.git"
Expand All @@ -15,7 +15,8 @@
"wildemitter": "1.x",
"socket.io-client": "^1.3.7",
"attachmediastream": "^1.3.5",
"mockconsole": "0.0.1"
"mockconsole": "0.0.1",
"getscreenmedia": "https://github.com/Objectway/getScreenMedia.git"
},
"devDependencies": {
"browserify": "2.22.0",
Expand Down
4 changes: 2 additions & 2 deletions peer.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,15 +209,15 @@ Peer.prototype.onIceCandidate = function (candidate) {
}
};

Peer.prototype.start = function () {
Peer.prototype.start = function (roomName) {
var self = this;

// well, the webrtc api requires that we either
// a) create a datachannel a priori
// b) do a renegotiation later to add the SCTP m-line
// Let's do (a) first...
if (this.enableDataChannels) {
this.getDataChannel('simplewebrtc');
this.getDataChannel(roomName);
}

this.pc.offer(this.receiveMedia, function (err, sessionDescription) {
Expand Down
Loading