use of org.bigbluebutton.red5.client.messaging.BroadcastClientMessage in project bigbluebutton by bigbluebutton.
the class UserClientMessageSender method processUserVoiceTalkingMessage.
private void processUserVoiceTalkingMessage(UserVoiceTalkingMessage msg) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("meetingID", msg.meetingId);
args.put("userId", msg.user.get("userId"));
Map<String, Object> vuMap = (Map<String, Object>) msg.user.get("voiceUser");
args.put("voiceUserId", (String) vuMap.get("userId"));
args.put("talking", (Boolean) vuMap.get("talking"));
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
BroadcastClientMessage m = new BroadcastClientMessage(msg.meetingId, "voiceUserTalking", message);
service.sendMessage(m);
}
use of org.bigbluebutton.red5.client.messaging.BroadcastClientMessage in project bigbluebutton by bigbluebutton.
the class UserClientMessageSender method processBreakoutRoomClosed.
private void processBreakoutRoomClosed(BreakoutRoomClosed msg) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("breakoutMeetingId", msg.payload.meetingId);
args.put("parentMeetingId", msg.payload.parentMeetingId);
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, "breakoutRoomClosed", message);
service.sendMessage(m);
}
use of org.bigbluebutton.red5.client.messaging.BroadcastClientMessage in project bigbluebutton by bigbluebutton.
the class UserClientMessageSender method processUserVoiceMutedMessage.
private void processUserVoiceMutedMessage(UserVoiceMutedMessage msg) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("meetingID", msg.meetingId);
args.put("userId", msg.user.get("userId"));
Map<String, Object> vuMap = (Map<String, Object>) msg.user.get("voiceUser");
args.put("voiceUserId", (String) vuMap.get("userId"));
args.put("muted", (Boolean) vuMap.get("muted"));
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
BroadcastClientMessage m = new BroadcastClientMessage(msg.meetingId, "voiceUserMuted", message);
service.sendMessage(m);
}
use of org.bigbluebutton.red5.client.messaging.BroadcastClientMessage in project bigbluebutton by bigbluebutton.
the class UserClientMessageSender method processUserUnsharedWebcamMessage.
private void processUserUnsharedWebcamMessage(UserUnsharedWebcamMessage msg) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("userId", msg.userId);
args.put("webcamStream", msg.stream);
String timeStamp = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(Calendar.getInstance().getTime());
args.put("serverTimestamp", timeStamp);
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
BroadcastClientMessage m = new BroadcastClientMessage(msg.meetingId, "userUnsharedWebcam", message);
service.sendMessage(m);
}
use of org.bigbluebutton.red5.client.messaging.BroadcastClientMessage in project bigbluebutton by bigbluebutton.
the class WhiteboardClientMessageSender method processUndoWhiteboardReply.
private void processUndoWhiteboardReply(UndoWhiteboardReplyMessage msg) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("shapeId", msg.shapeId);
args.put("whiteboardId", msg.whiteboardId);
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
BroadcastClientMessage m = new BroadcastClientMessage(msg.meetingId, "WhiteboardUndoCommand", message);
service.sendMessage(m);
}
Aggregations