Search in sources :

Example 1 with PresentationRemovedMessage

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

the class PresentationClientMessageSender method processPresentationRemovedMessage.

private void processPresentationRemovedMessage(String json) {
    PresentationRemovedMessage msg = PresentationRemovedMessage.fromJson(json);
    if (msg != null) {
        Map<String, Object> args = new HashMap<String, Object>();
        args.put("presentationID", msg.presentationId);
        Map<String, Object> message = new HashMap<String, Object>();
        Gson gson = new Gson();
        message.put("msg", gson.toJson(args));
        BroadcastClientMessage m = new BroadcastClientMessage(msg.meetingId, "removePresentationCallback", message);
        service.sendMessage(m);
    }
}
Also used : BroadcastClientMessage(org.bigbluebutton.red5.client.messaging.BroadcastClientMessage) HashMap(java.util.HashMap) Gson(com.google.gson.Gson) PresentationRemovedMessage(org.bigbluebutton.common.messages.PresentationRemovedMessage) JsonObject(com.google.gson.JsonObject)

Aggregations

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