Comparing version 1.5.0 to 1.6.0
{ | ||
"name": "webrtc", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "webrtc", |
@@ -158,16 +158,16 @@ var webrtc = require('webrtcsupport'); | ||
audio.on('speaking', function () { | ||
self.emit('speaking'); | ||
if (self.hardMuted) return; | ||
self.setMicIfEnabled(1); | ||
self.sendToAll('speaking', {}); | ||
self.emit('speaking'); | ||
}); | ||
audio.on('stopped_speaking', function () { | ||
if (self.hardMuted) return; | ||
if (timeout) clearTimeout(timeout); | ||
timeout = setTimeout(function () { | ||
self.emit('stoppedSpeaking'); | ||
if (self.hardMuted) return; | ||
self.setMicIfEnabled(0.5); | ||
self.sendToAll('stopped_speaking', {}); | ||
self.emit('stoppedSpeaking'); | ||
}, 1000); | ||
@@ -178,4 +178,4 @@ }); | ||
audio.on('volume_change', function (volume, treshold) { | ||
self.emit('volumeChange', volume, treshold); | ||
if (self.hardMuted) return; | ||
self.emit('volumeChange', volume, treshold); | ||
// FIXME: should use sendDirectlyToAll, but currently has different semantics wrt payload | ||
@@ -182,0 +182,0 @@ self.peers.forEach(function (peer) { |
Sorry, the diff of this file is too big to display
151087