Sound and notification on raise hand, fixes #40
parent
1dcb4eabf2
commit
c7c4a76b33
|
|
@ -2211,6 +2211,39 @@ export default class RoomClient
|
||||||
|
|
||||||
store.dispatch(peerActions.setPeerRaisedHand(peerId, raisedHand));
|
store.dispatch(peerActions.setPeerRaisedHand(peerId, raisedHand));
|
||||||
|
|
||||||
|
const { displayName } = store.getState().peers[peerId];
|
||||||
|
|
||||||
|
let text;
|
||||||
|
|
||||||
|
if (raisedHand)
|
||||||
|
{
|
||||||
|
text = intl.formatMessage({
|
||||||
|
id : 'room.raisedHand',
|
||||||
|
defaultMessage : '{displayName} raised their hand'
|
||||||
|
}, {
|
||||||
|
displayName
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
text = intl.formatMessage({
|
||||||
|
id : 'room.loweredHand',
|
||||||
|
defaultMessage : '{displayName} put their hand down'
|
||||||
|
}, {
|
||||||
|
displayName
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (displayName)
|
||||||
|
{
|
||||||
|
store.dispatch(requestActions.notify(
|
||||||
|
{
|
||||||
|
text
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
this._soundNotification();
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,8 @@
|
||||||
"room.clearFileSharing": null,
|
"room.clearFileSharing": null,
|
||||||
"room.speechUnsupported": null,
|
"room.speechUnsupported": null,
|
||||||
"room.moderatoractions": null,
|
"room.moderatoractions": null,
|
||||||
|
"room.raisedHand": null,
|
||||||
|
"room.loweredHand": null,
|
||||||
|
|
||||||
"me.mutedPTT": null,
|
"me.mutedPTT": null,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,8 @@
|
||||||
"room.clearFileSharing": null,
|
"room.clearFileSharing": null,
|
||||||
"room.speechUnsupported": null,
|
"room.speechUnsupported": null,
|
||||||
"room.moderatoractions": null,
|
"room.moderatoractions": null,
|
||||||
|
"room.raisedHand": null,
|
||||||
|
"room.loweredHand": null,
|
||||||
|
|
||||||
"me.mutedPTT": null,
|
"me.mutedPTT": null,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,8 @@
|
||||||
"room.clearFileSharing": null,
|
"room.clearFileSharing": null,
|
||||||
"room.speechUnsupported": "Dein Browser unterstützt keine Spracherkennung",
|
"room.speechUnsupported": "Dein Browser unterstützt keine Spracherkennung",
|
||||||
"room.moderatoractions": null,
|
"room.moderatoractions": null,
|
||||||
|
"room.raisedHand": null,
|
||||||
|
"room.loweredHand": null,
|
||||||
|
|
||||||
"me.mutedPTT": "Du bist stummgeschalted, Halte die SPACE-Taste um zu sprechen",
|
"me.mutedPTT": "Du bist stummgeschalted, Halte die SPACE-Taste um zu sprechen",
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,8 @@
|
||||||
"room.clearFileSharing": null,
|
"room.clearFileSharing": null,
|
||||||
"room.speechUnsupported": null,
|
"room.speechUnsupported": null,
|
||||||
"room.moderatoractions": null,
|
"room.moderatoractions": null,
|
||||||
|
"room.raisedHand": null,
|
||||||
|
"room.loweredHand": null,
|
||||||
|
|
||||||
"me.mutedPTT": null,
|
"me.mutedPTT": null,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,8 @@
|
||||||
"room.clearFileSharing": null,
|
"room.clearFileSharing": null,
|
||||||
"room.speechUnsupported": null,
|
"room.speechUnsupported": null,
|
||||||
"room.moderatoractions": null,
|
"room.moderatoractions": null,
|
||||||
|
"room.raisedHand": null,
|
||||||
|
"room.loweredHand": null,
|
||||||
|
|
||||||
"me.mutedPTT": null,
|
"me.mutedPTT": null,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,8 @@
|
||||||
"room.clearFileSharing": "Clear files",
|
"room.clearFileSharing": "Clear files",
|
||||||
"room.speechUnsupported": "Your browser does not support speech recognition",
|
"room.speechUnsupported": "Your browser does not support speech recognition",
|
||||||
"room.moderatoractions": "Moderator actions",
|
"room.moderatoractions": "Moderator actions",
|
||||||
|
"room.raisedHand": "{displayName} raised their hand",
|
||||||
|
"room.loweredHand": "{displayName} put their hand down",
|
||||||
|
|
||||||
"me.mutedPTT": "You are muted, hold down SPACE-BAR to talk",
|
"me.mutedPTT": "You are muted, hold down SPACE-BAR to talk",
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,8 @@
|
||||||
"room.clearFileSharing": null,
|
"room.clearFileSharing": null,
|
||||||
"room.speechUnsupported": null,
|
"room.speechUnsupported": null,
|
||||||
"room.moderatoractions": null,
|
"room.moderatoractions": null,
|
||||||
|
"room.raisedHand": null,
|
||||||
|
"room.loweredHand": null,
|
||||||
|
|
||||||
"me.mutedPTT": null,
|
"me.mutedPTT": null,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,8 @@
|
||||||
"room.clearFileSharing": null,
|
"room.clearFileSharing": null,
|
||||||
"room.speechUnsupported": null,
|
"room.speechUnsupported": null,
|
||||||
"room.moderatoractions": null,
|
"room.moderatoractions": null,
|
||||||
|
"room.raisedHand": null,
|
||||||
|
"room.loweredHand": null,
|
||||||
|
|
||||||
"me.mutedPTT": null,
|
"me.mutedPTT": null,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,8 @@
|
||||||
"room.clearFileSharing": null,
|
"room.clearFileSharing": null,
|
||||||
"room.speechUnsupported": "Vaš preglednik ne podržava prepoznavanje govora",
|
"room.speechUnsupported": "Vaš preglednik ne podržava prepoznavanje govora",
|
||||||
"room.moderatoractions": null,
|
"room.moderatoractions": null,
|
||||||
|
"room.raisedHand": null,
|
||||||
|
"room.loweredHand": null,
|
||||||
|
|
||||||
"me.mutedPTT": "Utišani ste, pritisnite i držite SPACE tipku za razgovor",
|
"me.mutedPTT": "Utišani ste, pritisnite i držite SPACE tipku za razgovor",
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,8 @@
|
||||||
"room.clearFileSharing": null,
|
"room.clearFileSharing": null,
|
||||||
"room.speechUnsupported": null,
|
"room.speechUnsupported": null,
|
||||||
"room.moderatoractions": null,
|
"room.moderatoractions": null,
|
||||||
|
"room.raisedHand": null,
|
||||||
|
"room.loweredHand": null,
|
||||||
|
|
||||||
"me.mutedPTT": null,
|
"me.mutedPTT": null,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,8 @@
|
||||||
"room.clearFileSharing": null,
|
"room.clearFileSharing": null,
|
||||||
"room.speechUnsupported": null,
|
"room.speechUnsupported": null,
|
||||||
"room.moderatoractions": null,
|
"room.moderatoractions": null,
|
||||||
|
"room.raisedHand": null,
|
||||||
|
"room.loweredHand": null,
|
||||||
|
|
||||||
"me.mutedPTT": null,
|
"me.mutedPTT": null,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,8 @@
|
||||||
"room.clearFileSharing": "Fjern filer",
|
"room.clearFileSharing": "Fjern filer",
|
||||||
"room.speechUnsupported": "Din nettleser støtter ikke stemmegjenkjenning",
|
"room.speechUnsupported": "Din nettleser støtter ikke stemmegjenkjenning",
|
||||||
"room.moderatoractions": "Moderatorhandlinger",
|
"room.moderatoractions": "Moderatorhandlinger",
|
||||||
|
"room.raisedHand": "{displayName} rakk opp hånden",
|
||||||
|
"room.loweredHand": "{displayName} tok ned hånden",
|
||||||
|
|
||||||
"me.mutedPTT": "Du er dempet, hold nede SPACE for å snakke",
|
"me.mutedPTT": "Du er dempet, hold nede SPACE for å snakke",
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,8 @@
|
||||||
"room.clearFileSharing": null,
|
"room.clearFileSharing": null,
|
||||||
"room.speechUnsupported": null,
|
"room.speechUnsupported": null,
|
||||||
"room.moderatoractions": null,
|
"room.moderatoractions": null,
|
||||||
|
"room.raisedHand": null,
|
||||||
|
"room.loweredHand": null,
|
||||||
|
|
||||||
"me.mutedPTT": null,
|
"me.mutedPTT": null,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,8 @@
|
||||||
"room.clearFileSharing": null,
|
"room.clearFileSharing": null,
|
||||||
"room.speechUnsupported": null,
|
"room.speechUnsupported": null,
|
||||||
"room.moderatoractions": null,
|
"room.moderatoractions": null,
|
||||||
|
"room.raisedHand": null,
|
||||||
|
"room.loweredHand": null,
|
||||||
|
|
||||||
"me.mutedPTT": null,
|
"me.mutedPTT": null,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,8 @@
|
||||||
"room.clearFileSharing": null,
|
"room.clearFileSharing": null,
|
||||||
"room.speechUnsupported": null,
|
"room.speechUnsupported": null,
|
||||||
"room.moderatoractions": null,
|
"room.moderatoractions": null,
|
||||||
|
"room.raisedHand": null,
|
||||||
|
"room.loweredHand": null,
|
||||||
|
|
||||||
"me.mutedPTT": null,
|
"me.mutedPTT": null,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,8 @@
|
||||||
"room.clearFileSharing": null,
|
"room.clearFileSharing": null,
|
||||||
"room.speechUnsupported": null,
|
"room.speechUnsupported": null,
|
||||||
"room.moderatoractions": null,
|
"room.moderatoractions": null,
|
||||||
|
"room.raisedHand": null,
|
||||||
|
"room.loweredHand": null,
|
||||||
|
|
||||||
"me.mutedPTT": null,
|
"me.mutedPTT": null,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,8 @@
|
||||||
"room.clearFileSharing": null,
|
"room.clearFileSharing": null,
|
||||||
"room.speechUnsupported": null,
|
"room.speechUnsupported": null,
|
||||||
"room.moderatoractions": null,
|
"room.moderatoractions": null,
|
||||||
|
"room.raisedHand": null,
|
||||||
|
"room.loweredHand": null,
|
||||||
|
|
||||||
"me.mutedPTT": null,
|
"me.mutedPTT": null,
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue