diff --git a/bigbluebutton-apps/src/main/java/org/bigbluebutton/conference/BigBlueButtonApplication.java b/bigbluebutton-apps/src/main/java/org/bigbluebutton/conference/BigBlueButtonApplication.java index ce55a92ffe..722a243f7b 100755 --- a/bigbluebutton-apps/src/main/java/org/bigbluebutton/conference/BigBlueButtonApplication.java +++ b/bigbluebutton-apps/src/main/java/org/bigbluebutton/conference/BigBlueButtonApplication.java @@ -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,8 +135,8 @@ 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); } diff --git a/bigbluebutton-apps/src/main/java/org/bigbluebutton/conference/ParticipantUpdatingRoomListener.java b/bigbluebutton-apps/src/main/java/org/bigbluebutton/conference/ParticipantUpdatingRoomListener.java index 8dd87e1ead..25e8f06c97 100755 --- a/bigbluebutton-apps/src/main/java/org/bigbluebutton/conference/ParticipantUpdatingRoomListener.java +++ b/bigbluebutton-apps/src/main/java/org/bigbluebutton/conference/ParticipantUpdatingRoomListener.java @@ -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()); diff --git a/bigbluebutton-apps/src/main/java/org/bigbluebutton/conference/RoomListener.java b/bigbluebutton-apps/src/main/java/org/bigbluebutton/conference/RoomListener.java index bb6ad1bf43..256c80065b 100755 --- a/bigbluebutton-apps/src/main/java/org/bigbluebutton/conference/RoomListener.java +++ b/bigbluebutton-apps/src/main/java/org/bigbluebutton/conference/RoomListener.java @@ -22,7 +22,7 @@ package org.bigbluebutton.conference; import java.util.ArrayList; import java.util.List; import org.red5.server.api.so.ISharedObject; - + public class RoomListener implements IRoomListener{ private ISharedObject so; diff --git a/bigbluebutton-apps/src/main/java/org/bigbluebutton/conference/RoomsManager.java b/bigbluebutton-apps/src/main/java/org/bigbluebutton/conference/RoomsManager.java index 50e416dd3d..4ebfe1d92f 100755 --- a/bigbluebutton-apps/src/main/java/org/bigbluebutton/conference/RoomsManager.java +++ b/bigbluebutton-apps/src/main/java/org/bigbluebutton/conference/RoomsManager.java @@ -30,7 +30,7 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; - + /** * This encapsulates access to Room and Participant. This class must be threadsafe. */ @@ -282,7 +282,7 @@ public class RoomsManager { public void presentationUpdates(HashMap map) { conversionUpdatesMessageListener.handleReceivedMessage(map); } - + } }