This commit is contained in:
Felipe Cecagno 2014-02-24 12:13:09 -03:00
parent 07635128eb
commit 6e59b20909
4 changed files with 7 additions and 8 deletions

View File

@ -124,9 +124,7 @@ public class BigBlueButtonApplication extends MultiThreadedApplicationAdapter {
@Override
public boolean roomConnect(IConnection connection, Object[] params) {
log.debug("***** " + APP + " [ " + " roomConnect [ " + connection.getScope().getName() + "] *********");
for(int i = 0; i < params.length; i++) {
System.out.println("Parametro " + i + ": " + params[i]);
}
String username = ((String) params[0]).toString();
String role = ((String) params[1]).toString();
String room = ((String)params[2]).toString();
@ -137,7 +135,7 @@ public class BigBlueButtonApplication extends MultiThreadedApplicationAdapter {
String externalUserID = ((String) params[5]).toString();
String internalUserID = ((String) params[6]).toString();
boolean guest = true;//((Boolean) params[7]);
boolean guest = ((Boolean) params[7]);
if (record == true) {
recorderApplication.createRecordSession(room);

View File

@ -121,6 +121,7 @@ public class ParticipantUpdatingRoomListener implements IRoomListener{
map.put("fullname", p.getName());
map.put("role", p.getRole());
map.put("guest", p.isGuest().toString());
Gson gson= new Gson();
messagingService.send(MessagingConstants.PARTICIPANTS_CHANNEL, gson.toJson(map));
log.debug("Publishing message participant joined in " + this.room.getName());