use of org.bigbluebutton.red5.client.messaging.DirectClientMessage in project bigbluebutton by bigbluebutton.
the class UserClientMessageSender method processBroadcastLayoutMessage.
private void processBroadcastLayoutMessage(String message) {
BroadcastLayoutMessage msg = BroadcastLayoutMessage.fromJson(message);
if (msg != null) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("locked", msg.locked);
args.put("setByUserID", msg.setByUserid);
args.put("layout", msg.layout);
Iterator<String> usersIter = msg.users.iterator();
while (usersIter.hasNext()) {
String user = usersIter.next();
DirectClientMessage m = new DirectClientMessage(msg.meetingId, user, "syncLayout", args);
service.sendMessage(m);
}
}
}
use of org.bigbluebutton.red5.client.messaging.DirectClientMessage in project bigbluebutton by bigbluebutton.
the class UserClientMessageSender method processLockLayoutMessage.
private void processLockLayoutMessage(String message) {
LockLayoutMessage msg = LockLayoutMessage.fromJson(message);
if (msg != null) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("locked", msg.locked);
args.put("setById", msg.setByUserid);
Iterator<String> usersIter = msg.users.iterator();
while (usersIter.hasNext()) {
String user = usersIter.next();
DirectClientMessage m = new DirectClientMessage(msg.meetingId, user, "layoutLocked", args);
service.sendMessage(m);
}
}
}
use of org.bigbluebutton.red5.client.messaging.DirectClientMessage in project bigbluebutton by bigbluebutton.
the class UserClientMessageSender method processBreakoutRoomJoinURL.
private void processBreakoutRoomJoinURL(BreakoutRoomJoinURL msg) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("parentMeetingId", msg.payload.parentMeetingId);
args.put("breakoutMeetingId", msg.payload.breakoutMeetingId);
args.put("userId", msg.payload.userId);
args.put("redirectJoinURL", msg.payload.redirectJoinURL);
args.put("noRedirectJoinURL", msg.payload.noRedirectJoinURL);
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
DirectClientMessage m = new DirectClientMessage(msg.payload.parentMeetingId, msg.payload.userId, "breakoutRoomJoinURL", message);
service.sendMessage(m);
}
use of org.bigbluebutton.red5.client.messaging.DirectClientMessage in project bigbluebutton by bigbluebutton.
the class UserClientMessageSender method processUserEjectedFromMeetingMessage.
private void processUserEjectedFromMeetingMessage(String message) {
UserEjectedFromMeetingMessage msg = UserEjectedFromMeetingMessage.fromJson(message);
if (msg != null) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("ejectedBy", msg.ejectedBy);
System.out.println("**** User [" + msg.userId + "] was ejected by [" + msg.ejectedBy + "]");
DirectClientMessage m = new DirectClientMessage(msg.meetingId, msg.userId, "userEjectedFromMeeting", args);
service.sendMessage(m);
}
}
use of org.bigbluebutton.red5.client.messaging.DirectClientMessage in project bigbluebutton by bigbluebutton.
the class UserClientMessageSender method processValidateAuthTokenTimeoutMessage.
private void processValidateAuthTokenTimeoutMessage(ValidateAuthTokenTimeoutMessage msg) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("userId", msg.userId);
args.put("valid", msg.valid);
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
log.info("validateAuthTokenTimedOut - " + gson.toJson(args));
DirectClientMessage m = new DirectClientMessage(msg.meetingId, msg.userId, "validateAuthTokenTimedOut", message);
service.sendMessage(m);
}
Aggregations