This commit is contained in:
Piotr Pawałowski 2020-10-03 21:55:13 +02:00
parent 8637fd483a
commit b87fbf3731
2 changed files with 6 additions and 9 deletions

View file

@ -1398,7 +1398,6 @@ export default class RoomClient
start
)
{
if (this._webcamProducer)
await this.disableWebcam();
@ -2788,7 +2787,7 @@ export default class RoomClient
const { id, displayName, picture, roles } = notification.data;
store.dispatch(peerActions.addPeer(
{ id, displayName, picture, roles, consumers: [] }));
{ id, displayName, picture, roles, consumers: [] }));
this._spotlights.newPeer(id);
@ -3291,7 +3290,8 @@ export default class RoomClient
if (
joinVideo &&
this._havePermission(permissions.SHARE_VIDEO)
){
)
{
this.updateWebcam({ start: true });
}
if (
@ -3310,8 +3310,6 @@ export default class RoomClient
if (autoMuteThreshold && peers.length >= autoMuteThreshold)
this.muteMic();
}
}
await this._updateAudioOutputDevices();

View file

@ -26,7 +26,6 @@ export default class Spotlights
this._spotlightsUpdated();
}
peerInSpotlights(peerId)
{
return this._currentSpotlights.indexOf(peerId) !== -1;
@ -37,7 +36,7 @@ export default class Spotlights
logger.debug('addPeerToSpotlight() [peerId:"%s"]', peerId);
this._selectedSpotlights = [ ...this._selectedSpotlights, peerId ];
this._spotlightsUpdated();
this._spotlightsUpdated();
}
removePeerSpotlight(peerId)
@ -48,7 +47,7 @@ export default class Spotlights
this._selectedSpotlights.filter((peer) =>
peer !== peerId);
this._spotlightsUpdated();
this._spotlightsUpdated();
}
clearSpotlights()
@ -125,7 +124,7 @@ export default class Spotlights
}
if (!this._arraysEqual(
this._currentSpotlights, spotlights.slice(0, maxSpotlights)))
this._currentSpotlights, spotlights.slice(0, maxSpotlights)))
{
logger.debug('_spotlightsUpdated() | spotlights updated, emitting');