use of org.bigbluebutton.red5.client.messaging.DirectClientMessage in project bigbluebutton by bigbluebutton.
the class DeskShareMessageSender method processDeskShareNotifyASingleViewerEventMessage.
private void processDeskShareNotifyASingleViewerEventMessage(DeskShareNotifyASingleViewerEventMessage msg) {
Map<String, Object> messageInfo = new HashMap<String, Object>();
messageInfo.put("rtmpUrl", msg.streamPath);
messageInfo.put("broadcasting", msg.broadcasting);
messageInfo.put("width", msg.vw);
messageInfo.put("height", msg.vh);
String toUserId = msg.userId;
DirectClientMessage receiver = new DirectClientMessage(msg.meetingId, toUserId, "DeskShareRTMPBroadcastNotification", messageInfo);
service.sendMessage(receiver);
}
use of org.bigbluebutton.red5.client.messaging.DirectClientMessage in project bigbluebutton by bigbluebutton.
the class PollingClientMessageSender method processUserVotedPollMessage.
private void processUserVotedPollMessage(String json) {
UserVotedPollMessage msg = UserVotedPollMessage.fromJson(json);
if (msg != null) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("poll", msg.poll);
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
DirectClientMessage b = new DirectClientMessage(msg.meetingId, msg.presenterId, "pollUserVotedMessage", message);
service.sendMessage(b);
}
}
use of org.bigbluebutton.red5.client.messaging.DirectClientMessage in project bigbluebutton by bigbluebutton.
the class PresentationClientMessageSender method processGetPresentationInfoReplyMessage.
private void processGetPresentationInfoReplyMessage(String json) {
GetPresentationInfoReplyMessage msg = GetPresentationInfoReplyMessage.fromJson(json);
if (msg != null) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("meetingID", msg.meetingId);
args.put("presenter", msg.presenter);
args.put("presentations", msg.presentations);
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
DirectClientMessage m = new DirectClientMessage(msg.meetingId, msg.requesterId, "getPresentationInfoReply", message);
service.sendMessage(m);
}
}
use of org.bigbluebutton.red5.client.messaging.DirectClientMessage in project bigbluebutton by bigbluebutton.
the class PresentationClientMessageSender method processGetSlideInfoReply.
private void processGetSlideInfoReply(String json) {
GetSlideInfoReplyMessage msg = GetSlideInfoReplyMessage.fromJson(json);
if (msg != null) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("meetingID", msg.meetingId);
args.put("xOffset", msg.xOffset);
args.put("yOffest", msg.yOffset);
args.put("widthRatio", msg.widthRatio);
args.put("heightRatio", msg.heightRatio);
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
DirectClientMessage m = new DirectClientMessage(msg.meetingId, msg.requesterId, "getSlideInfoReply", message);
service.sendMessage(m);
}
}
use of org.bigbluebutton.red5.client.messaging.DirectClientMessage in project bigbluebutton by bigbluebutton.
the class CaptionClientMessageSender method processSendCaptionHistoryReplyMessage.
private void processSendCaptionHistoryReplyMessage(SendCaptionHistoryReplyMessage msg) {
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(msg.captionHistory));
DirectClientMessage m = new DirectClientMessage(msg.meetingID, msg.requesterID, "sendCaptionHistoryReply", message);
service.sendMessage(m);
}
Aggregations