Package org.red5.server.api

Examples of org.red5.server.api.IServer


        connectionStats.increment();
        // get connected scope
        IScope connScope = conn.getScope();
        log.trace("Connection scope: {}", connScope);
        if (this.equals(connScope)) {
          final IServer server = getServer();
          if (server instanceof Server) {
            ((Server) server).notifyConnected(conn);
          }
        }
        return true;
View Full Code Here


      // remove listener
      removeEventListener(conn);
      // decrement if there was a set of connections
      connectionStats.decrement();
      if (this.equals(conn.getScope())) {
        final IServer server = getServer();
        if (server instanceof Server) {
          ((Server) server).notifyDisconnected(conn);
        }
      }
    }
View Full Code Here

        log.debug("Failed to start child scope: {} in {}", scope, this);
        return false;
      }
    }
    if (scope instanceof IScope) {
      final IServer server = getServer();
      if (server instanceof Server) {
        ((Server) server).notifyScopeCreated((IScope) scope);
      }
    }
    log.debug("Add child scope: {} to {}", scope, this);
View Full Code Here

    clientStats.increment();
    addEventListener(conn);
    connectionStats.increment();

    if (this.equals(conn.getScope())) {
      final IServer server = getServer();
      if (server instanceof Server) {
        ((Server) server).notifyConnected(conn);
      }
    }
    return true;
View Full Code Here

      }
      removeEventListener(conn);
      connectionStats.decrement();

      if (this.equals(conn.getScope())) {
        final IServer server = getServer();
        if (server instanceof Server) {
          ((Server) server).notifyDisconnected(conn);
        }
      }
    }
View Full Code Here

      getHandler().removeChildScope(scope);
    }
    scope.setStore(null);

    if (scope instanceof IScope) {
      final IServer server = getServer();
      if (server instanceof Server) {
        ((Server) server).notifyScopeRemoved((IScope) scope);
      }
    }
  }
View Full Code Here

          .getInstance("red5.xml");
      BeanFactoryReference bfr = bfl.useBeanFactory("red5.common");

      // Create WebScope dynamically
      WebScope scope = new WebScope();
      IServer server = (IServer) bfr.getFactory().getBean(IServer.ID);
      scope.setServer(server);
      scope.setGlobalScope(server.getGlobal("default"));

      // Get default Red5 context from context loader that is JettyLoader in this case
      ApplicationContext appCtx = JettyLoader.getApplicationContext();
      ContextLoader loader = (ContextLoader) appCtx
          .getBean("context.loader");
View Full Code Here

    // ------------------------------------------------------------------------

    private void createPlayStream( IPendingServiceCallback callback ) {

        logger.debug( "create play stream" );
        IPendingServiceCallback wrapper = new CreatePlayStreamCallBack( callback );
        invoke( "createStream", null, wrapper );
    }
View Full Code Here

      if (stream.getStreamListeners() != null) {
       
        for (Iterator<IStreamListener> iter = stream.getStreamListeners().iterator();iter.hasNext();) {
         
          IStreamListener iStreamListener = iter.next();
         
          ListenerAdapter listenerAdapter = (ListenerAdapter) iStreamListener;
         
          log.debug("Stream Closing ?? "+listenerAdapter.getFlvRecordingMetaDataId()+ " " +flvRecordingMetaDataId);
         
View Full Code Here

            if ( !( event instanceof IRTMPEvent ) ) {
                logger.debug( "skipping non rtmp event: " + event );
                return;
            }

            IRTMPEvent rtmpEvent = (IRTMPEvent) event;

            if ( logger.isDebugEnabled() ) {
                // logger.debug("rtmp event: " + rtmpEvent.getHeader() + ", " +
                // rtmpEvent.getClass().getSimpleName());
            }

            if ( !( rtmpEvent instanceof IStreamData ) ) {
                logger.debug( "skipping non stream data" );
                return;
            }

            if ( rtmpEvent.getHeader().getSize() == 0 ) {
                logger.debug( "skipping event where size == 0" );
                return;
            }

            if ( rtmpEvent instanceof VideoData ) {
View Full Code Here

TOP

Related Classes of org.red5.server.api.IServer

Copyright © 2018 www.massapicom. 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.