Search in sources :

Example 1 with PresentationConversionErrorMessage

use of org.bigbluebutton.common.messages.PresentationConversionErrorMessage in project bigbluebutton by bigbluebutton.

the class PresentationClientMessageSender method processPresentationConversionError.

private void processPresentationConversionError(String json) {
    PresentationConversionErrorMessage msg = PresentationConversionErrorMessage.fromJson(json);
    if (msg != null) {
        Map<String, Object> args = new HashMap<String, Object>();
        args.put("meetingID", msg.meetingId);
        args.put("code", msg.code);
        args.put("presentationID", msg.presentationId);
        args.put("presentationName", msg.presentationName);
        args.put("messageKey", msg.messageKey);
        args.put("numberOfPages", msg.numPages);
        args.put("maxNumberPages", msg.maxNumPages);
        Map<String, Object> message = new HashMap<String, Object>();
        Gson gson = new Gson();
        message.put("msg", gson.toJson(args));
        BroadcastClientMessage m = new BroadcastClientMessage(msg.meetingId, "pageCountExceededUpdateMessageCallback", message);
        service.sendMessage(m);
    }
}
Also used : BroadcastClientMessage(org.bigbluebutton.red5.client.messaging.BroadcastClientMessage) PresentationConversionErrorMessage(org.bigbluebutton.common.messages.PresentationConversionErrorMessage) 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 PresentationConversionErrorMessage (org.bigbluebutton.common.messages.PresentationConversionErrorMessage)1 BroadcastClientMessage (org.bigbluebutton.red5.client.messaging.BroadcastClientMessage)1