Search in sources :

Example 1 with BroadcastLayoutMessage

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);
        }
    }
}
Also used : BroadcastLayoutMessage(org.bigbluebutton.common.messages.BroadcastLayoutMessage) HashMap(java.util.HashMap) JsonObject(com.google.gson.JsonObject) DirectClientMessage(org.bigbluebutton.red5.client.messaging.DirectClientMessage)

Aggregations

JsonObject (com.google.gson.JsonObject)1 HashMap (java.util.HashMap)1 BroadcastLayoutMessage (org.bigbluebutton.common.messages.BroadcastLayoutMessage)1 DirectClientMessage (org.bigbluebutton.red5.client.messaging.DirectClientMessage)1