Examples of PlaylistSubscriberStream


Examples of org.red5.server.stream.PlaylistSubscriberStream

  /** {@inheritDoc} */
  public IPlaylistSubscriberStream newPlaylistSubscriberStream(int streamId) {
    if (isValidStreamId(streamId)) {
      // get PlaylistSubscriberStream defined as a prototype in red5-common.xml
      PlaylistSubscriberStream pss = (PlaylistSubscriberStream) scope.getContext().getBean("playlistSubscriberStream");
      Integer buffer = streamBuffers.get(streamId - 1);
      if (buffer != null) {
        pss.setClientBufferDuration(buffer);
      }
      pss.setName(createStreamName());
      pss.setConnection(this);
      pss.setScope(this.getScope());
      pss.setStreamId(streamId);
      registerStream(pss);
      usedStreams.incrementAndGet();
      return pss;
    }
    return null;
View Full Code Here

Examples of org.red5.server.stream.PlaylistSubscriberStream

      }
      /**
       * Picking up the PlaylistSubscriberStream defined as a Spring
       * prototype in red5-common.xml
       */
      PlaylistSubscriberStream pss = (PlaylistSubscriberStream) scope
          .getContext().getBean("playlistSubscriberStream");
      Integer buffer = streamBuffers.get(streamId - 1);
      if (buffer != null)
        pss.setClientBufferDuration(buffer);
      pss.setName(createStreamName());
      pss.setConnection(this);
      pss.setScope(this.getScope());
      pss.setStreamId(streamId);
      registerStream(pss);
      usedStreams++;
      return pss;
    }
  }
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.