Notification on room configuration changes

master
Daniel Berteaud 10 years ago
parent 5f122fed91
commit c5a19d6a3d
  1. 1
      lib/Vroom/Constants.pm
  2. 1
      lib/Vroom/I18N/en.pm
  3. 7
      lib/Vroom/I18N/fr.pm
  4. 7
      public/js/vroom.js

@ -122,6 +122,7 @@ use constant JS_STRINGS => qw(
s_IS_PROMOTING_YOU s_IS_PROMOTING_YOU
s_IS_PROMOTING_s s_IS_PROMOTING_s
s_IS_KICKING_s s_IS_KICKING_s
s_CHANGED_ROOM_CONFIG
MUTE_PEER MUTE_PEER
SUSPEND_PEER SUSPEND_PEER
PROMOTE_PEER PROMOTE_PEER

@ -208,6 +208,7 @@ our %Lexicon = (
"s_IS_PROMOTING_s" => "%s has granted %s administration privileges on the room", "s_IS_PROMOTING_s" => "%s has granted %s administration privileges on the room",
"PEER_PROMOTED" => "You have granted administration privileges on the room", "PEER_PROMOTED" => "You have granted administration privileges on the room",
"s_IS_KICKING_s" => "%s has kicked %s out of the room", "s_IS_KICKING_s" => "%s has kicked %s out of the room",
"s_CHANGED_ROOM_CONFIG" => "%s changed room configuration",
"KICKED" => "Kicked", "KICKED" => "Kicked",
"YOU_HAVE_BEEN_KICKED" => "You've been kicked out of the room", "YOU_HAVE_BEEN_KICKED" => "You've been kicked out of the room",
"AN_ADMIN_HAS_KICKED_YOU" => "An administrator of the room has excluded you", "AN_ADMIN_HAS_KICKED_YOU" => "An administrator of the room has excluded you",

@ -212,7 +212,7 @@ our %Lexicon = (
"MUTE_PEER" => "Couper ou réactiver le micro de ce participant", "MUTE_PEER" => "Couper ou réactiver le micro de ce participant",
"SUSPEND_PEER" => "Mettre en pause ou réactiver la webcam de ce participant", "SUSPEND_PEER" => "Mettre en pause ou réactiver la webcam de ce participant",
"PROMOTE_PEER" => "Donner les droits d'administration du salon à ce participant", "PROMOTE_PEER" => "Donner les droits d'administration du salon à ce participant",
"KICK_PEER" => "Éjecter ce participant du salon", "KICK_PEER" => "Bannir ce participant du salon",
"s_IS_MUTING_YOU" => "%s a coupé votre micro", "s_IS_MUTING_YOU" => "%s a coupé votre micro",
"s_IS_MUTING_s" => "%s a coupé le micro de %s", "s_IS_MUTING_s" => "%s a coupé le micro de %s",
"s_IS_UNMUTING_YOU" => "%s a réactivé votre micro", "s_IS_UNMUTING_YOU" => "%s a réactivé votre micro",
@ -224,8 +224,9 @@ our %Lexicon = (
"s_IS_PROMOTING_YOU" => "%s vous a donné les droits d'administration du salon", "s_IS_PROMOTING_YOU" => "%s vous a donné les droits d'administration du salon",
"s_IS_PROMOTING_s" => "%s a donné les droits d'administration du salon à %s", "s_IS_PROMOTING_s" => "%s a donné les droits d'administration du salon à %s",
"PEER_PROMOTED" => "Vous avez donné les droits sur ce salon", "PEER_PROMOTED" => "Vous avez donné les droits sur ce salon",
"s_IS_KICKING_s" => "%s a éjecté %s du salon", "s_IS_KICKING_s" => "%s a banni %s du salon",
"KICKED" => "Éjecté", "s_CHANGED_ROOM_CONFIG" => "%s a changé la configuration du salon",
"KICKED" => "Banni",
"YOU_HAVE_BEEN_KICKED" => "Vous avez été banni du salon", "YOU_HAVE_BEEN_KICKED" => "Vous avez été banni du salon",
"AN_ADMIN_HAS_KICKED_YOU" => "Un administrateur du salon vous a exclus", "AN_ADMIN_HAS_KICKED_YOU" => "Un administrateur du salon vous a exclus",
"YOU_HAVE_MUTED_s" => "Vous avez coupé le micro de %s", "YOU_HAVE_MUTED_s" => "Vous avez coupé le micro de %s",

@ -1091,6 +1091,13 @@ function initVroom(room) {
} }
}); });
// Room config has been updated
webrtc.on('room_conf_updated', function(data){
var who = (peers[data.id].hasName) ? peers[data.id].displayName : locale.A_ROOM_ADMIN;
getRoomInfo();
$.notify(sprintf(locale.s_CHANGED_ROOM_CONFIG, who), 'success');
});
// This peer indicates he has no webcam // This peer indicates he has no webcam
webrtc.on('media_info', function(data){ webrtc.on('media_info', function(data){
if (!data.payload.video){ if (!data.payload.video){

Loading…
Cancel
Save