Raise hand over network - still no state on server (new participants don't get the raised hand state of others until the others change their raised hand state)

This commit is contained in:
Stefan Otto
2018-04-24 10:05:54 +02:00
parent bd30a54958
commit 63b48ebd71
13 changed files with 173 additions and 39 deletions
+6 -3
View File
@@ -264,14 +264,17 @@ class Room extends EventEmitter
{
accept();
const { raiseHandMessage } = request.data;
const { raiseHandState } = request.data;
const { mediaPeer } = protooPeer.data;
mediaPeer.appData.raiseHand = request.data.raiseHandState;
// Spread to others via protoo.
this._protooRoom.spread(
'raisehand-message-receive',
'raisehand-message',
{
peerName : protooPeer.id,
raiseHandMessage : raiseHandMessage
raiseHandState : raiseHandState
},
[ protooPeer ]);