Activate lastN

master
Håvar Aambø Fosstveit 2018-10-24 10:06:10 +02:00
parent 345f8d9c3d
commit 59d570aa0b
1 changed files with 5 additions and 2 deletions

View File

@ -367,7 +367,7 @@ export default class RoomClient
} }
}); });
} }
catch(error) catch (error)
{ {
logger.error('updateSpeakers() failed: %o', error); logger.error('updateSpeakers() failed: %o', error);
} }
@ -1061,6 +1061,9 @@ export default class RoomClient
this._dispatch( this._dispatch(
stateActions.setRoomActiveSpeaker(peerName)); stateActions.setRoomActiveSpeaker(peerName));
if (peerName && peerName !== this._peerName)
this.handleActiveSpeaker(peerName);
}); });
this._signalingSocket.on('display-name-changed', (data) => this._signalingSocket.on('display-name-changed', (data) =>
@ -1240,7 +1243,7 @@ export default class RoomClient
if (this._room.canSend('audio')) if (this._room.canSend('audio'))
await this._setMicProducer(); await this._setMicProducer();
// Add our webcam (unless the cookie says no). // Add our webcam (unless the cookie says no).
if (this._room.canSend('video')) if (this._room.canSend('video'))
{ {
const devicesCookie = cookiesManager.getDevices(); const devicesCookie = cookiesManager.getDevices();