Package org.red5.server.api.scope

Examples of org.red5.server.api.scope.IBasicScope


      log.error("[streamPublishStart]", err);
    }
  }

  public IBroadcastScope getBroadcastScope(IScope scope, String name) {
    IBasicScope basicScope = scope.getBasicScope(ScopeType.BROADCAST, name);
    if (!(basicScope instanceof IBroadcastScope)) {
      return null;
    } else {
      return (IBroadcastScope) basicScope;
    }
View Full Code Here


      log.error("[streamPublishStart]", err);
    }
  }

  public IBroadcastScope getBroadcastScope(IScope scope, String name) {
    IBasicScope basicScope = scope.getBasicScope(ScopeType.BROADCAST, name);
    if (!(basicScope instanceof IBroadcastScope)) {
      return null;
    } else {
      return (IBroadcastScope) basicScope;
    }
View Full Code Here

      log.error("[streamPublishStart]", err);
    }
  }

  public IBroadcastScope getBroadcastScope(IScope scope, String name) {
    IBasicScope basicScope = scope.getBasicScope(ScopeType.BROADCAST, name);
    if (!(basicScope instanceof IBroadcastScope)) {
      return null;
    } else {
      return (IBroadcastScope) basicScope;
    }
View Full Code Here

      log.error("[streamPublishStart]", err);
    }
  }

  public IBroadcastScope getBroadcastScope(IScope scope, String name) {
    IBasicScope basicScope = scope.getBasicScope(ScopeType.BROADCAST, name);
    if (!(basicScope instanceof IBroadcastScope)) {
      return null;
    } else {
      return (IBroadcastScope) basicScope;
    }
View Full Code Here

   *
   * @param name Scope name
   * @return Child scope with given name
   */
  public IScope getScope(String name) {
    IBasicScope child = children.getBasicScope(ScopeType.UNDEFINED, name);
    log.debug("Child of {}: {}", this.name, child);
    if (child != null) {
      if (child instanceof IScope) {
        return (IScope) child;
      }
      log.warn("Requested scope: {} is not of IScope type: {}", name, child.getClass().getName());
    }
    return null;
  }
View Full Code Here

   * @param ancestor Scope to check
   * @return <code>true</code> if ancestor scope is really an ancestor of
   *         scope passed as from parameter, <code>false</code> otherwise.
   */
  public static boolean isAncestor(IBasicScope from, IBasicScope ancestor) {
    IBasicScope current = from;
    while (current.hasParent()) {
      current = current.getParent();
      if (current.equals(ancestor)) {
        return true;
      }
    }
    return false;
  }
View Full Code Here

      log.error("[streamPublishStart]", err);
    }
  }

  public IBroadcastScope getBroadcastScope(IScope scope, String name) {
    IBasicScope basicScope = scope.getBasicScope(ScopeType.BROADCAST, name);
    if (!(basicScope instanceof IBroadcastScope)) {
      return null;
    } else {
      return (IBroadcastScope) basicScope;
    }
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.scope.IBasicScope

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.