use of org.bigbluebutton.common.messages.BroadcastLayoutMessage 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);
}
}
}
Aggregations