use of org.bigbluebutton.red5.client.messaging.BroadcastClientMessage in project bigbluebutton by bigbluebutton.
the class PresentationClientMessageSender method processPresentationConversionProgress.
private void processPresentationConversionProgress(String json) {
PresentationConversionProgressMessage msg = PresentationConversionProgressMessage.fromJson(json);
if (msg != null) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("presentationID", msg.presentationId);
args.put("meetingID", msg.meetingId);
args.put("code", msg.code);
args.put("messageKey", msg.messageKey);
args.put("presentationName", msg.presentationName);
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
BroadcastClientMessage m = new BroadcastClientMessage(msg.meetingId, "conversionUpdateMessageCallback", message);
service.sendMessage(m);
}
}
use of org.bigbluebutton.red5.client.messaging.BroadcastClientMessage in project bigbluebutton by bigbluebutton.
the class UserClientMessageSender method processUserListeningOnlyMessage.
private void processUserListeningOnlyMessage(UserListeningOnlyMessage msg) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("userId", msg.userId);
args.put("listenOnly", msg.listenOnly);
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
BroadcastClientMessage m = new BroadcastClientMessage(msg.meetingId, "user_listening_only", message);
service.sendMessage(m);
}
use of org.bigbluebutton.red5.client.messaging.BroadcastClientMessage in project bigbluebutton by bigbluebutton.
the class UserClientMessageSender method processUserStatusChangedMessage.
private void processUserStatusChangedMessage(UserStatusChangedMessage msg) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("userID", msg.userId);
args.put("status", msg.status);
args.put("value", msg.value);
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
BroadcastClientMessage m = new BroadcastClientMessage(msg.meetingId, "participantStatusChange", message);
service.sendMessage(m);
}
use of org.bigbluebutton.red5.client.messaging.BroadcastClientMessage in project bigbluebutton by bigbluebutton.
the class UserClientMessageSender method processUpdateBreakoutUsers.
private void processUpdateBreakoutUsers(UpdateBreakoutUsers msg) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("parentMeetingId", msg.payload.parentMeetingId);
args.put("breakoutMeetingId", msg.payload.breakoutMeetingId);
args.put("users", msg.payload.users);
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
BroadcastClientMessage m = new BroadcastClientMessage(msg.payload.parentMeetingId, "updateBreakoutUsers", message);
service.sendMessage(m);
}
use of org.bigbluebutton.red5.client.messaging.BroadcastClientMessage in project bigbluebutton by bigbluebutton.
the class CaptionClientMessageSender method processUpdateCaptionOwnerMessage.
private void processUpdateCaptionOwnerMessage(UpdateCaptionOwnerMessage msg) {
Map<String, Object> message = new HashMap<String, Object>();
message.put(Constants.LOCALE, msg.locale);
message.put(Constants.LOCALE_CODE, msg.localeCode);
message.put(Constants.OWNER_ID, msg.ownerID);
BroadcastClientMessage m = new BroadcastClientMessage(msg.meetingID, "updateCaptionOwner", message);
service.sendMessage(m);
}
Aggregations