Examples of IBasicScope


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

   *
   * @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

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

   * @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

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
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.