Examples of IPipe


Examples of buildcraft.api.transport.IPipe

    return new StatementParameterDirection();
    }

    @Override
    public void actionActivate(IStatementContainer container, IStatementParameter[] parameters) {
      IPipe pipe = ((Gate) container).getPipe();
   
      if (pipe != null && pipe instanceof Pipe) {
      PipeTransport transport = ((Pipe) pipe).transport;
      if (parameters[0] != null && parameters[0] instanceof StatementParameterDirection) {
        ForgeDirection side = ((StatementParameterDirection) parameters[0]).direction;
View Full Code Here

Examples of org.red5.server.messaging.IPipe

    IStreamCapableConnection streamConn = stream.getConnection();
    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

Examples of org.red5.server.messaging.IPipe

          this.livePipe = null;
        }
        break;
      case PipeConnectionEvent.CONSUMER_CONNECT_PUSH:
        log.debug("Consumer connect");
        IPipe pipe = (IPipe) event.getSource();
        if (log.isDebugEnabled() && pipe != null) {
          log.debug("Consumer: {}", pipe.getClass().getName());
        }
        if (this.livePipe == pipe) {
          notifyChunkSize();
        }
        subscriberStats.increment();
View Full Code Here

Examples of org.red5.server.messaging.IPipe

    if (streamConn != null && streamConn instanceof RTMPConnection) {
      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

Examples of org.red5.server.messaging.IPipe

    log.debug("getVODProviderInput - scope: {} name: {}", scope, name);
    File file = getVODProviderFile(scope, name);
    if (file == null) {
      return null;
    }
    IPipe pipe = new InMemoryPullPullPipe();
    pipe.subscribe(new FileProvider(scope, file), null);
    return pipe;
  }
View Full Code Here

Examples of org.red5.server.messaging.IPipe

    }
    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

Examples of org.red5.server.messaging.IPipe

  public IMessageInput getVODProviderInput(IScope scope, String name) {
    File file = getVODProviderFile(scope, name);
    if (file == null) {
      return null;
    }
    IPipe pipe = new InMemoryPullPullPipe();
    pipe.subscribe(new FileProvider(scope, file), null);
    return pipe;
  }
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.