use of org.bigbluebutton.common.messages.PresentationSharedMessage in project bigbluebutton by bigbluebutton.
the class PresentationClientMessageSender method processPresentationSharedMessage.
private void processPresentationSharedMessage(String json) {
PresentationSharedMessage msg = PresentationSharedMessage.fromJson(json);
if (msg != null) {
Map<String, Object> presentation = new HashMap<String, Object>();
presentation.put("id", msg.presentation.get("id"));
presentation.put("name", msg.presentation.get("name"));
presentation.put("current", msg.presentation.get("current"));
presentation.put("pages", msg.presentation.get("pages"));
Map<String, Object> args = new HashMap<String, Object>();
args.put("presentation", presentation);
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
BroadcastClientMessage m = new BroadcastClientMessage(msg.meetingId, "sharePresentationCallback", message);
service.sendMessage(m);
}
}
Aggregations