use of org.bigbluebutton.red5.client.messaging.BroadcastClientMessage in project bigbluebutton by bigbluebutton.
the class MeetingClientMessageSender method processUserLockedMessage.
private void processUserLockedMessage(UserLockedMessage msg) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("meetingID", msg.meetingId);
args.put("user", msg.userId);
args.put("lock", msg.locked);
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
BroadcastClientMessage m = new BroadcastClientMessage(msg.meetingId, "userLocked", message);
service.sendMessage(m);
}
use of org.bigbluebutton.red5.client.messaging.BroadcastClientMessage in project bigbluebutton by bigbluebutton.
the class MeetingClientMessageSender method processMeetingEndedMessage.
private void processMeetingEndedMessage(MeetingEndedMessage msg) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("status", "Meeting has been ended.");
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
BroadcastClientMessage m = new BroadcastClientMessage(msg.meetingId, "meetingEnded", message);
service.sendMessage(m);
}
use of org.bigbluebutton.red5.client.messaging.BroadcastClientMessage in project bigbluebutton by bigbluebutton.
the class PresentationClientMessageSender method processPresentationConversionDone.
private void processPresentationConversionDone(String json) {
PresentationConversionDoneMessage msg = PresentationConversionDoneMessage.fromJson(json);
if (msg != null) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("meetingID", msg.meetingId);
args.put("code", msg.code);
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"));
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, "conversionCompletedUpdateMessageCallback", message);
service.sendMessage(m);
}
}
use of org.bigbluebutton.red5.client.messaging.BroadcastClientMessage in project bigbluebutton by bigbluebutton.
the class PresentationClientMessageSender method processPresentationConversionError.
private void processPresentationConversionError(String json) {
PresentationConversionErrorMessage msg = PresentationConversionErrorMessage.fromJson(json);
if (msg != null) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("meetingID", msg.meetingId);
args.put("code", msg.code);
args.put("presentationID", msg.presentationId);
args.put("presentationName", msg.presentationName);
args.put("messageKey", msg.messageKey);
args.put("numberOfPages", msg.numPages);
args.put("maxNumberPages", msg.maxNumPages);
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
BroadcastClientMessage m = new BroadcastClientMessage(msg.meetingId, "pageCountExceededUpdateMessageCallback", message);
service.sendMessage(m);
}
}
use of org.bigbluebutton.red5.client.messaging.BroadcastClientMessage in project bigbluebutton by bigbluebutton.
the class PresentationClientMessageSender method processPresentationRemovedMessage.
private void processPresentationRemovedMessage(String json) {
PresentationRemovedMessage msg = PresentationRemovedMessage.fromJson(json);
if (msg != null) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("presentationID", msg.presentationId);
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
BroadcastClientMessage m = new BroadcastClientMessage(msg.meetingId, "removePresentationCallback", message);
service.sendMessage(m);
}
}
Aggregations