Examples of IEventListener


Examples of org.red5.server.api.event.IEventListener

  /**
   * Check and send notification if necessary
   * @param event          Event
   */
  private void checkSendNotifications(IEvent event) {
    IEventListener source = event.getSource();
    sendStartNotifications(source);
  }
View Full Code Here

Examples of org.red5.server.api.event.IEventListener

        switch (event.getType()) {
          case SERVER_CONNECT:
            if (!isConnectionAllowed()) {
              so.returnError(SO_NO_READ_ACCESS);
            } else if (msg.hasSource()) {
              IEventListener source = msg.getSource();
              if (source instanceof BaseConnection) {
                ((BaseConnection) source).registerBasicScope(this);
              } else {
                addEventListener(source);
              }
            }
            break;
          case SERVER_DISCONNECT:
            if (msg.hasSource()) {
              IEventListener source = msg.getSource();
              if (source instanceof BaseConnection) {
                ((BaseConnection) source)
                    .unregisterBasicScope(this);
              } else {
                removeEventListener(source);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.