Search in sources :

Example 1 with PresentationConversionDoneMessage

use of org.bigbluebutton.common.messages.PresentationConversionDoneMessage 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);
    }
}
Also used : BroadcastClientMessage(org.bigbluebutton.red5.client.messaging.BroadcastClientMessage) PresentationConversionDoneMessage(org.bigbluebutton.common.messages.PresentationConversionDoneMessage) HashMap(java.util.HashMap) Gson(com.google.gson.Gson) JsonObject(com.google.gson.JsonObject)

Aggregations

Gson (com.google.gson.Gson)1 JsonObject (com.google.gson.JsonObject)1 HashMap (java.util.HashMap)1 PresentationConversionDoneMessage (org.bigbluebutton.common.messages.PresentationConversionDoneMessage)1 BroadcastClientMessage (org.bigbluebutton.red5.client.messaging.BroadcastClientMessage)1