Package org.red5.server.messaging

Examples of org.red5.server.messaging.InMemoryPullPullPipe.subscribe()


      } else {
        log.warn("Broadcast scope was not added to {}", scope);
      }
    }
    log.debug("Subscribing scope {} to provider {}", broadcastScope, bs.getProvider());
    return broadcastScope.subscribe(bs.getProvider(), null);
  }

  /** {@inheritDoc} */
  public Set<String> getBroadcastStreamNames(IScope scope) {
    return scope.getBasicScopeNames(ScopeType.BROADCAST);
View Full Code Here


            "screenSharerAction"
            , new Object[] { params }
            , ScopeApplicationAdapter.this);
        }
      });
          bsScope.subscribe(proxy, null);
          proxy.start(id, "live", null);
          streamingProxyMap.put(publishName, proxy);
          stream.addStreamListener(new IStreamListener() {
        public void packetReceived(IBroadcastStream stream, IStreamPacket packet) {
          try {
View Full Code Here

    if (streamConn != null) {
      Channel data = new Channel(null, 4);
      Channel video = new Channel(null, 5);
      Channel audio = new Channel(null, 6);
      IPipe pipe = new InMemoryPushPushPipe();
      pipe.subscribe(new ConnectionConsumer(video, audio, data), null);
      return pipe;
    }
    return null;
  }
View Full Code Here

      RTMPConnection conn = (RTMPConnection) streamConn;
      // TODO Better manage channels.
      // now we use OutputStream as a channel wrapper.
      OutputStream o = conn.createOutputStream(stream.getStreamId());
      IPipe pipe = new InMemoryPushPushPipe();
      pipe.subscribe(new ConnectionConsumer(conn, o.getVideo(), o.getAudio(), o.getData()), null);
      return pipe;
    }
    return null;
  }
View Full Code Here

    File file = getVODProviderFile(scope, name);
    if (file == null) {
      return null;
    }
    IPipe pipe = new InMemoryPullPullPipe();
    pipe.subscribe(new FileProvider(scope, file), null);
    return pipe;
  }

  /** {@inheritDoc} */
  public File getVODProviderFile(IScope scope, String name) {
View Full Code Here

    RTMPConnection conn = (RTMPConnection) streamConn;
    // TODO Better manage channels.
    // now we use OutputStream as a channel wrapper.
    OutputStream o = conn.createOutputStream(stream.getStreamId());
    IPipe pipe = new InMemoryPushPushPipe();
    pipe.subscribe(new ConnectionConsumer(conn, o.getVideo().getId(), o
        .getAudio().getId(), o.getData().getId()), null);
    return pipe;
  }

}
View Full Code Here

    File file = getVODProviderFile(scope, name);
    if (file == null) {
      return null;
    }
    IPipe pipe = new InMemoryPullPullPipe();
    pipe.subscribe(new FileProvider(scope, file), null);
    return pipe;
  }

  /** {@inheritDoc} */
  public File getVODProviderFile(IScope scope, String name) {
View Full Code Here

    File file = getVODProviderFile(scope, name);
    if (file == null) {
      return null;
    }
    IPipe pipe = new InMemoryPullPullPipe();
    pipe.subscribe(new FileProvider(scope, file), null);
    return pipe;
  }

  /** {@inheritDoc} */
  public File getVODProviderFile(IScope scope, String name) {
View Full Code Here

    File file = getVODProviderFile(scope, name);
    if (file == null) {
      return null;
    }
    IPipe pipe = new InMemoryPullPullPipe();
    pipe.subscribe(new FileProvider(scope, file), null);
    return pipe;
  }

  /** {@inheritDoc} */
  public File getVODProviderFile(IScope scope, String name) {
View Full Code Here

    if (streamConn != null) {
      Channel data = new Channel(null, 4);
      Channel video = new Channel(null, 5);
      Channel audio = new Channel(null, 6);
      IPipe pipe = new InMemoryPushPushPipe();
      pipe.subscribe(new ConnectionConsumer(video, audio, data), null);
      return pipe;
    }
    return null;
  }
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.