Search in sources :

Example 1 with ISharedObject

use of org.red5.server.api.so.ISharedObject in project bigbluebutton by bigbluebutton.

the class ConnectionInvokerService method sendSharedObjectMessage.

private void sendSharedObjectMessage(SharedObjectClientMessage msg) {
    System.out.println("*********** Request to send [" + msg.getMessageName() + "] using shared object.");
    IScope meetingScope = getScope(msg.getMeetingID());
    if (meetingScope != null) {
        if (meetingScope.hasChildScope(ScopeType.SHARED_OBJECT, msg.getSharedObjectName())) {
            ISharedObject so = getSharedObject(meetingScope, msg.getSharedObjectName());
            if (so != null) {
                System.out.println("*********** Sending [" + msg.getMessageName() + "] using shared object.");
                so.sendMessage(msg.getMessageName(), msg.getMessage());
            } else {
                System.out.println("**** Cannot get SO for [" + msg.getSharedObjectName() + "]");
            }
        } else {
            System.out.println("**** No SO scope for [" + msg.getSharedObjectName() + "]");
        }
    } else {
        System.out.println("**** No Meeting scope for [" + msg.getMeetingID() + "]");
    }
}
Also used : IScope(org.red5.server.api.scope.IScope) ISharedObject(org.red5.server.api.so.ISharedObject)

Aggregations

IScope (org.red5.server.api.scope.IScope)1 ISharedObject (org.red5.server.api.so.ISharedObject)1