Examples of IStreamService


Examples of org.red5.server.api.stream.IStreamService

    return (service.getLiveProviderInput(scope, name, false) != null);
  }

  /** {@inheritDoc} */
  public IBroadcastStream getBroadcastStream(IScope scope, String name) {
    IStreamService service = (IStreamService) ScopeUtils.getScopeService(scope, IStreamService.class, StreamService.class);
    if (service instanceof StreamService) {
      IBroadcastScope bs = ((StreamService) service).getBroadcastScope(scope, name);
      if (bs != null) {
        return bs.getClientBroadcastStream();
      }
View Full Code Here

Examples of org.red5.server.api.stream.IStreamService

              log.debug("State: {}", state.states[s]);
            state.setState(RTMP.STATE_DISCONNECTING);
        }
      }
      Red5.setConnectionLocal(this);
      IStreamService streamService = (IStreamService) ScopeUtils.getScopeService(scope, IStreamService.class, StreamService.class);
      if (streamService != null) {
        for (Map.Entry<Integer, IClientStream> entry : streams.entrySet()) {
          IClientStream stream = entry.getValue();
          if (stream != null) {
            if (log.isDebugEnabled())
              log.debug("Closing stream: {}", stream.getStreamId());
            streamService.deleteStream(this, stream.getStreamId());
            usedStreams.decrementAndGet();
          }
        }
      } else {
        if (log.isDebugEnabled())
View Full Code Here

Examples of org.red5.server.api.stream.IStreamService

          case SEEK:
          case PAUSE:
          case PAUSE_RAW:
          case RECEIVE_VIDEO:
          case RECEIVE_AUDIO:
            IStreamService streamService = (IStreamService) ScopeUtils.getScopeService(conn.getScope(), IStreamService.class, StreamService.class);
            Status status = null;
            try {
              log.debug("Invoking {} from {} with service: {}", new Object[] { call, conn, streamService });
              if (invokeCall(conn, call, streamService)) {
                log.debug("Stream service invoke {} success", action);
View Full Code Here

Examples of org.red5.server.api.stream.IStreamService

    if (keepAliveJobName != null) {
      schedulingService.removeScheduledJob(keepAliveJobName);
      keepAliveJobName = null;
    }
    Red5.setConnectionLocal(this);
    IStreamService streamService = (IStreamService) getScopeService(scope,
        IStreamService.class, StreamService.class);
    if (streamService != null) {
      synchronized (streams) {
        for (Map.Entry<Integer, IClientStream> entry : streams
            .entrySet()) {
          IClientStream stream = entry.getValue();
          if (stream != null) {
            if (log.isDebugEnabled()) {
              log.debug("Closing stream: {}", stream.getStreamId());
            }
            streamService.deleteStream(this, stream.getStreamId());
            usedStreams--;
          }
        }
        streams.clear();
      }
View Full Code Here

Examples of org.red5.server.api.stream.IStreamService

    return (service.getLiveProviderInput(scope, name, false) != null);
  }

  /** {@inheritDoc} */
    public IBroadcastStream getBroadcastStream(IScope scope, String name) {
    IStreamService service = (IStreamService) getScopeService(scope,
        IStreamService.class, StreamService.class);
    if (!(service instanceof StreamService))
      return null;
   
    IBroadcastScope bs = ((StreamService) service).getBroadcastScope(scope,
View Full Code Here

Examples of org.red5.server.api.stream.IStreamService

          || action.equals(ACTION_PLAY) || action.equals(ACTION_SEEK)
          || action.equals(ACTION_PAUSE)
          || action.equals(ACTION_CLOSE_STREAM)
          || action.equals(ACTION_RECEIVE_VIDEO)
          || action.equals(ACTION_RECEIVE_AUDIO)) {
        IStreamService streamService = (IStreamService) getScopeService(
            conn.getScope(), IStreamService.class,
            StreamService.class);
        Status status = null;
        try {
          if (!invokeCall(conn, call, streamService)) {
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.