use of org.bigbluebutton.red5.client.messaging.BroadcastClientMessage in project bigbluebutton by bigbluebutton.
the class UserClientMessageSender method processBreakoutRoomsList.
private void processBreakoutRoomsList(BreakoutRoomsList msg) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("meetingId", msg.payload.meetingId);
args.put("rooms", msg.payload.rooms);
args.put("roomsReady", msg.payload.roomsReady);
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
BroadcastClientMessage m = new BroadcastClientMessage(msg.payload.meetingId, "breakoutRoomsList", message);
service.sendMessage(m);
}
use of org.bigbluebutton.red5.client.messaging.BroadcastClientMessage in project bigbluebutton by bigbluebutton.
the class UserClientMessageSender method processPresenterAssignedMessage.
private void processPresenterAssignedMessage(PresenterAssignedMessage msg) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("newPresenterID", msg.newPresenterId);
args.put("newPresenterName", msg.newPresenterName);
args.put("assignedBy", msg.assignedBy);
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
BroadcastClientMessage m = new BroadcastClientMessage(msg.meetingId, "assignPresenterCallback", message);
service.sendMessage(m);
}
use of org.bigbluebutton.red5.client.messaging.BroadcastClientMessage in project bigbluebutton by bigbluebutton.
the class UserClientMessageSender method processTimeRemainingUpdate.
private void processTimeRemainingUpdate(TimeRemainingUpdate msg) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("meetingId", msg.payload.meetingId);
args.put("timeRemaining", msg.payload.timeRemaining);
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
BroadcastClientMessage m = new BroadcastClientMessage(msg.payload.meetingId, "timeRemainingUpdate", message);
service.sendMessage(m);
}
use of org.bigbluebutton.red5.client.messaging.BroadcastClientMessage in project bigbluebutton by bigbluebutton.
the class UserClientMessageSender method processUserJoinedMessage.
private void processUserJoinedMessage(UserJoinedMessage msg) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("user", msg.user);
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
String userId = msg.user.get("userId").toString();
log.info("joinMeetingReply - " + gson.toJson(args));
DirectClientMessage jmr = new DirectClientMessage(msg.meetingId, userId, "joinMeetingReply", message);
service.sendMessage(jmr);
BroadcastClientMessage m = new BroadcastClientMessage(msg.meetingId, "participantJoined", message);
service.sendMessage(m);
}
use of org.bigbluebutton.red5.client.messaging.BroadcastClientMessage in project bigbluebutton by bigbluebutton.
the class UserClientMessageSender method processUserLeftVoiceMessage.
private void processUserLeftVoiceMessage(UserLeftVoiceMessage msg) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("meetingID", msg.meetingId);
args.put("user", msg.user);
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
BroadcastClientMessage m = new BroadcastClientMessage(msg.meetingId, "userLeftVoice", message);
service.sendMessage(m);
}
Aggregations