Sound and notification on raise hand, fixes #40

This commit is contained in:
Håvar Aambø Fosstveit
2020-05-02 23:28:03 +02:00
parent 1dcb4eabf2
commit c7c4a76b33
18 changed files with 67 additions and 0 deletions
+33
View File
@@ -2211,6 +2211,39 @@ export default class RoomClient
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;
}
+2
View File
@@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": null,
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": null,
+2
View File
@@ -55,6 +55,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": null,
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": null,
+2
View File
@@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": "Dein Browser unterstützt keine Spracherkennung",
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": "Du bist stummgeschalted, Halte die SPACE-Taste um zu sprechen",
+2
View File
@@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": null,
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": null,
+2
View File
@@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": null,
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": null,
+2
View File
@@ -56,6 +56,8 @@
"room.clearFileSharing": "Clear files",
"room.speechUnsupported": "Your browser does not support speech recognition",
"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",
+2
View File
@@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": null,
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": null,
+2
View File
@@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": null,
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": null,
+2
View File
@@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": "Vaš preglednik ne podržava prepoznavanje govora",
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": "Utišani ste, pritisnite i držite SPACE tipku za razgovor",
+2
View File
@@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": null,
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": null,
+2
View File
@@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": null,
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": null,
+2
View File
@@ -56,6 +56,8 @@
"room.clearFileSharing": "Fjern filer",
"room.speechUnsupported": "Din nettleser støtter ikke stemmegjenkjenning",
"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",
+2
View File
@@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": null,
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": null,
+2
View File
@@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": null,
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": null,
+2
View File
@@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": null,
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": null,
+2
View File
@@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": null,
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": null,
+2
View File
@@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": null,
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": null,