raiseHandState now visible for new participants, deleted raiseHand notification
parent
19b1269dc3
commit
ee3c183c9c
|
|
@ -913,11 +913,6 @@ export default class RoomClient
|
||||||
{
|
{
|
||||||
this._dispatch(
|
this._dispatch(
|
||||||
stateActions.setMyRaiseHandState(state));
|
stateActions.setMyRaiseHandState(state));
|
||||||
|
|
||||||
this._dispatch(requestActions.notify(
|
|
||||||
{
|
|
||||||
text : 'raiseHand state changed'
|
|
||||||
}));
|
|
||||||
this._dispatch(
|
this._dispatch(
|
||||||
stateActions.setMyRaiseHandStateInProgress(false));
|
stateActions.setMyRaiseHandStateInProgress(false));
|
||||||
})
|
})
|
||||||
|
|
@ -1809,6 +1804,7 @@ export default class RoomClient
|
||||||
name : peer.name,
|
name : peer.name,
|
||||||
displayName : displayName,
|
displayName : displayName,
|
||||||
device : peer.appData.device,
|
device : peer.appData.device,
|
||||||
|
raiseHandState : peer.appData.raiseHandState,
|
||||||
consumers : []
|
consumers : []
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,20 @@ const ListPeer = (props) =>
|
||||||
<div className='peer-info'>
|
<div className='peer-info'>
|
||||||
{peer.displayName}
|
{peer.displayName}
|
||||||
</div>
|
</div>
|
||||||
|
<div className='indicators'>
|
||||||
|
{peer.raiseHandState ?
|
||||||
|
<div className={
|
||||||
|
classnames(
|
||||||
|
'icon', 'raise-hand', {
|
||||||
|
on : peer.raiseHandState,
|
||||||
|
off : !peer.raiseHandState
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
:null
|
||||||
|
}
|
||||||
|
</div>
|
||||||
<div className='controls'>
|
<div className='controls'>
|
||||||
{ screenConsumer ?
|
{ screenConsumer ?
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,55 @@
|
||||||
|
|
||||||
[data-component='ListPeer'] {
|
[data-component='ListPeer'] {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
> .indicators {
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
display: flex;
|
||||||
|
flex-direction:; row;
|
||||||
|
justify-content: flex-start;
|
||||||
|
align-items: center;
|
||||||
|
padding: 0.4vmin;
|
||||||
|
transition: opacity 0.3s;
|
||||||
|
|
||||||
|
> .icon {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
margin: 0.2vmin;
|
||||||
|
border-radius: 2px;
|
||||||
|
background-position: center;
|
||||||
|
background-size: 75%;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-color: rgba(#000, 0.5);
|
||||||
|
transition-property: opacity, background-color;
|
||||||
|
transition-duration: 0.15s;
|
||||||
|
|
||||||
|
+desktop() {
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
opacity: 0.85;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
+mobile() {
|
||||||
|
width: 22px;
|
||||||
|
height: 22px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.on {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.off {
|
||||||
|
opacity: 0.2;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.raise-hand {
|
||||||
|
background-image: url('/resources/images/icon-hand-white.svg');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
> .controls {
|
> .controls {
|
||||||
float: right;
|
float: right;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,6 @@
|
||||||
}
|
}
|
||||||
> .indicators {
|
> .indicators {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 200;
|
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -43,6 +42,7 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0.4vmin;
|
padding: 0.4vmin;
|
||||||
transition: opacity 0.3s;
|
transition: opacity 0.3s;
|
||||||
|
z-index: 10;
|
||||||
|
|
||||||
> .icon {
|
> .icon {
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
|
|
@ -52,7 +52,6 @@
|
||||||
background-size: 75%;
|
background-size: 75%;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-color: rgba(#000, 0.5);
|
background-color: rgba(#000, 0.5);
|
||||||
cursor: pointer;
|
|
||||||
transition-property: opacity, background-color;
|
transition-property: opacity, background-color;
|
||||||
transition-duration: 0.15s;
|
transition-duration: 0.15s;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -279,7 +279,7 @@ class Room extends EventEmitter
|
||||||
const { raiseHandState } = request.data;
|
const { raiseHandState } = request.data;
|
||||||
const { mediaPeer } = protooPeer.data;
|
const { mediaPeer } = protooPeer.data;
|
||||||
|
|
||||||
mediaPeer.appData.raiseHand = request.data.raiseHandState;
|
mediaPeer.appData.raiseHandState = request.data.raiseHandState;
|
||||||
// Spread to others via protoo.
|
// Spread to others via protoo.
|
||||||
this._protooRoom.spread(
|
this._protooRoom.spread(
|
||||||
'raisehand-message',
|
'raisehand-message',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue