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 @Override
public boolean roomConnect(IConnection connection, Object[] params) { public boolean roomConnect(IConnection connection, Object[] params) {
log.debug("***** " + APP + " [ " + " roomConnect [ " + connection.getScope().getName() + "] *********"); 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 username = ((String) params[0]).toString();
String role = ((String) params[1]).toString(); String role = ((String) params[1]).toString();
String room = ((String)params[2]).toString(); String room = ((String)params[2]).toString();
@ -137,8 +135,8 @@ public class BigBlueButtonApplication extends MultiThreadedApplicationAdapter {
String externalUserID = ((String) params[5]).toString(); String externalUserID = ((String) params[5]).toString();
String internalUserID = ((String) params[6]).toString(); String internalUserID = ((String) params[6]).toString();
boolean guest = true;//((Boolean) params[7]); boolean guest = ((Boolean) params[7]);
if (record == true) { if (record == true) {
recorderApplication.createRecordSession(room); recorderApplication.createRecordSession(room);
} }

View File

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

View File

@ -22,7 +22,7 @@ package org.bigbluebutton.conference;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.red5.server.api.so.ISharedObject; import org.red5.server.api.so.ISharedObject;
public class RoomListener implements IRoomListener{ public class RoomListener implements IRoomListener{
private ISharedObject so; private ISharedObject so;

View File

@ -30,7 +30,7 @@ import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentHashMap;
/** /**
* This encapsulates access to Room and Participant. This class must be threadsafe. * This encapsulates access to Room and Participant. This class must be threadsafe.
*/ */
@ -282,7 +282,7 @@ public class RoomsManager {
public void presentationUpdates(HashMap<String, String> map) { public void presentationUpdates(HashMap<String, String> map) {
conversionUpdatesMessageListener.handleReceivedMessage(map); conversionUpdatesMessageListener.handleReceivedMessage(map);
} }
} }
} }