Examples of InMemoryPushPushPipe


Examples of org.red5.server.messaging.InMemoryPushPushPipe

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

        paramMap.put("mode", "append");
      } else {
        paramMap.put("mode", "record");
      }
      if (null == recordPipe) {
        recordPipe = new InMemoryPushPushPipe();
      }
      recordPipe.subscribe(fc, paramMap);
      recordingFilename = filename;
    } catch (IOException e) {
      log.warn("Save as exception", e);
View Full Code Here

Examples of org.red5.server.messaging.InMemoryPushPushPipe

    }
    // publish this server-side stream
    IProviderService providerService = (IProviderService) getScope().getContext().getBean(IProviderService.BEAN_NAME);
    providerService.registerBroadcastStream(getScope(), publishedName, this);
    Map<String, Object> recordParamMap = new HashMap<String, Object>();
    recordPipe = new InMemoryPushPushPipe();
    recordParamMap.put("record", null);
    recordPipe.subscribe((IProvider) this, recordParamMap);
    recordingFilename = null;
    scheduler = (ISchedulingService) getScope().getContext().getBean(ISchedulingService.BEAN_NAME);
    state = State.STOPPED;
View Full Code Here

Examples of org.red5.server.messaging.InMemoryPushPushPipe

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

   * @param parent            Parent scope
   * @param name              Scope name
   */
  public BroadcastScope(IScope parent, String name) {
    super(parent, ScopeType.BROADCAST, name, false);
    pipe = new InMemoryPushPushPipe();
    pipe.addPipeConnectionListener(this);
    keepOnDisconnect = true;
  }
View Full Code Here

Examples of org.red5.server.messaging.InMemoryPushPushPipe

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

     * @param parent            Parent scope
     * @param name              Scope name
     */
  public BroadcastScope(IScope parent, String name) {
    super(parent, TYPE, name, false);
    pipe = new InMemoryPushPushPipe();
    pipe.addPipeConnectionListener(this);
    compCounter = 0;
    hasRemoved = false;
    keepOnDisconnect = true;
  }
View Full Code Here

Examples of org.red5.server.messaging.InMemoryPushPushPipe

      log.warn("No video codec factory available.", err);
    }
    firstPacketTime = audioTime = videoTime = dataTime = -1;
    connMsgOut = consumerManager.getConsumerOutput(this);
    connMsgOut.subscribe(this, null);
    recordPipe = new InMemoryPushPushPipe();
    Map<Object, Object> recordParamMap = new HashMap<Object, Object>();
    // Clear record flag
    recordParamMap.put("record", null);
    recordPipe.subscribe((IProvider) this, recordParamMap);
    recording = false;
View Full Code Here

Examples of org.red5.server.messaging.InMemoryPushPushPipe

      paramMap.put("mode", "append");
    } else {
      paramMap.put("mode", "record");
    }
    if (null == recordPipe) {
      recordPipe = new InMemoryPushPushPipe();
    }
    recordPipe.subscribe(fc, paramMap);
    recordingFilename = filename;
    } catch (IOException e) {
      log.warn("Save as exception", e);
View Full Code Here

Examples of org.red5.server.messaging.InMemoryPushPushPipe

    IProviderService providerService = (IProviderService) getScope()
        .getContext().getBean(IProviderService.BEAN_NAME);
    providerService
        .registerBroadcastStream(getScope(), publishedName, this);
    Map<Object, Object> recordParamMap = new HashMap<Object, Object>();
    recordPipe = new InMemoryPushPushPipe();
    recordParamMap.put("record", null);
    recordPipe.subscribe((IProvider) this, recordParamMap);
    recordingFilename = null;
    scheduler = (ISchedulingService) getScope().getContext().getBean(
        ISchedulingService.BEAN_NAME);
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.