Skip to content

Commit e40ca05

Browse files
committed
Merge branch 'release-0.24'
2 parents 3bc5e45 + dd4d90f commit e40ca05

File tree

5 files changed

+80
-7
lines changed

5 files changed

+80
-7
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,23 @@ open source TURN server implementation. Make sure to use a recent
130130
version (We recommend 3.2). Versions below 2.5 are not supported.
131131

132132

133+
## Setup Screensharing
134+
135+
### Chrome
136+
Chrome should work out of the box.
137+
138+
### Firefox
139+
140+
As of Firefox >= 36 you must append the domain being used to the allowed domains
141+
to access your screen. You do this by navigating to `about:config`, search for
142+
'media.getusermedia.screensharing.allowed_domains', and append the domain
143+
to the list of strings. You can edit the field simply by double clicking on it.
144+
Ensure that you follow the syntax rules of the field. If you are using an `ip:port`
145+
url, simply append `ip` to the list. Also ensure that you are using `https`,
146+
otherwise permission will be denied to share your screen. You do not need to restart
147+
or reload in order for it to take affect.
148+
149+
133150
## Contributing
134151

135152
1. "Fork" develop branch.

debian/changelog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
spreed-webrtc-server (0.24.7) trusty; urgency=medium
2+
3+
* Fixed a problem where Chrome did not apply screen sharing constraints correctly and screen sharing was using a low resolution.
4+
* Fixed a problem where sounds used as interval could not be disabled.
5+
* Added window.showCiphers helper for testing WebRTC stats API.
6+
7+
-- Simon Eisenmann <[email protected]> Thu, 13 Aug 2015 16:01:41 +0200
8+
19
spreed-webrtc-server (0.24.6) trusty; urgency=medium
210

311
* Make travis run 'make test'.

static/js/controllers/uicontroller.js

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,52 @@ define(['jquery', 'underscore', 'bigscreen', 'moment', 'sjcl', 'modernizr', 'web
5252
}
5353
}, 100, true));
5454

55+
// Helper to test WebRTC stats api.
56+
$window.showCiphers = function() {
57+
58+
var prettyPrint = function(obj) {
59+
return JSON.stringify(obj, null, 2)
60+
};
61+
62+
var processStatsReport = function(report) {
63+
var channels = {};
64+
for (var i in report) {
65+
if (report.hasOwnProperty(i)) {
66+
var entry = report[i];
67+
var channel = null;
68+
if (entry.type === "googCandidatePair") {
69+
// Chrome candidate pair.
70+
if (!entry.googActiveConnection) {
71+
continue
72+
}
73+
channel = report[entry.googChannelId];
74+
} else {
75+
continue;
76+
}
77+
if (channel && !channels[channel.id]) {
78+
channels[channel.id] = true;
79+
console.info("Connected channel", prettyPrint(channel));
80+
var localCertificate = report[channel.localCertificateId];
81+
var remoteCertificate = report[channel.remoteCertificateId];
82+
console.info("Local certificate", prettyPrint(localCertificate));
83+
console.info("Remote certificate", prettyPrint(remoteCertificate));
84+
}
85+
}
86+
}
87+
};
88+
89+
mediaStream.webrtc.callForEachCall(function(c) {
90+
if (c.peerconnection && c.peerconnection.pc) {
91+
c.peerconnection.pc.getStats(null, function(report) {
92+
processStatsReport(report);
93+
}, function(error) {
94+
console.log("Failed to retrieve stats report", error);
95+
});
96+
}
97+
});
98+
99+
};
100+
55101
// Load default sounds.
56102
playSound.initialize({
57103
urls: ['sounds/sprite1.ogg', 'sounds/sprite1.mp3'],
@@ -631,7 +677,7 @@ define(['jquery', 'underscore', 'bigscreen', 'moment', 'sjcl', 'modernizr', 'web
631677
});
632678

633679
mediaStream.webrtc.e.on("bye", function(event, reason, from) {
634-
console.log("received bye", pickupTimeout, reason);
680+
//console.log("received bye", pickupTimeout, reason);
635681
switch (reason) {
636682
case "busy":
637683
console.log("User is busy", reason, from);

static/js/mediastream/peerscreenshare.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ define(['jquery', 'underscore', 'mediastream/peercall', 'mediastream/tokens'], f
7979
// be provided in options.
8080
var mandatoryVideoConstraints = $.extend(true, {}, {
8181
maxWidth: screenWidth,
82-
maxHeight: screenHeight
82+
maxHeight: screenHeight,
83+
minWidth: screenWidth,
84+
minHeight: screenHeight
8385
}, webrtc.settings.screensharing.mediaConstraints.video.mandatory, options);
8486
var mediaConstraints = $.extend(true, {}, webrtc.settings.screensharing.mediaConstraints, {
8587
audio: false

static/js/services/playsound.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,21 +119,21 @@ define(['underscore', 'Howler', 'require'], function(_, Howler, require) {
119119
return null;
120120
}
121121

122-
var id = this.getId(name);
123-
124122
if (interval) {
125123

126-
if (this.intervals.hasOwnProperty(id)) {
127-
return this.intervals[id];
124+
if (this.intervals.hasOwnProperty(name)) {
125+
return this.intervals[name];
128126
}
129-
var i = this.intervals[id] = new SoundInterval(this, id, interval);
127+
var i = this.intervals[name] = new SoundInterval(this, name, interval);
130128
if (autostart) {
131129
i.start();
132130
}
133131
return i;
134132

135133
} else {
136134

135+
var id = this.getId(name);
136+
137137
if (!this.shouldPlaySound(name) || !this.shouldPlaySound(id)) {
138138
return;
139139
}

0 commit comments

Comments
 (0)