Package org.red5.server.net.rtmp.event

Examples of org.red5.server.net.rtmp.event.ClientBW


         }
         String scopeName = "hibernate";
         if (rcl.getRoom_id() != null) {
           scopeName = rcl.getRoom_id().toString();
         }
         IScope currentScope = this.scopeApplicationAdapter.getRoomScope(scopeName);
         this.scopeApplicationAdapter.roomLeaveByScope(rcl, currentScope);
        
        
         HashMap<Integer,String> messageObj = new HashMap<Integer,String>();
         messageObj.put(0, "kick");
View Full Code Here


          }
          String scopeName = "hibernate";
          if (rcl.getRoom_id() != null) {
            scopeName = rcl.getRoom_id().toString();
          }
          IScope currentScope = this.scopeApplicationAdapter.getRoomScope(scopeName);
         
          HashMap<Integer,String> messageObj = new HashMap<Integer,String>();
          messageObj.put(0, "kick");
         
          this.scopeApplicationAdapter.sendMessageById(messageObj, rcl.getStreamid(), currentScope);
View Full Code Here

    // ------------------------------------------------------------------------

    private void createPlayStream( IPendingServiceCallback callback ) {

        logger.debug( "create play stream" );
        IPendingServiceCallback wrapper = new CreatePlayStreamCallBack( callback );
        invoke( "createStream", null, wrapper );
    }
View Full Code Here

      if (stream.getStreamListeners() != null) {
       
        for (Iterator<IStreamListener> iter = stream.getStreamListeners().iterator();iter.hasNext();) {
         
          IStreamListener iStreamListener = iter.next();
         
          ListenerAdapter listenerAdapter = (ListenerAdapter) iStreamListener;
         
          log.debug("Stream Closing ?? "+listenerAdapter.getFlvRecordingMetaDataId()+ " " +flvRecordingMetaDataId);
         
View Full Code Here

  /** {@inheritDoc} */
  public void setBandwidth(int mbits) {
    // tell the flash player how fast we want data and how fast we shall send it
    getChannel(2).write(new ServerBW(mbits));
    // second param is the limit type (0=hard,1=soft,2=dynamic)
    getChannel(2).write(new ClientBW(mbits, (byte) limitType));
  }
View Full Code Here

    if (success) {
      // tell the flash player how fast we want data and how fast we shall
      // send it
      getChannel(2).write(new ServerBW(defaultServerBandwidth));
      // second param is the limit type (0=hard,1=soft,2=dynamic)
      getChannel(2).write(new ClientBW(defaultClientBandwidth, (byte) limitType));
      // if the client is null for some reason, skip the jmx registration
      if (client != null) {
        // perform bandwidth detection
        if (bandwidthDetection && !client.isBandwidthChecked()) {
          client.checkBandwidth();
View Full Code Here

   * @param in
   *            Byte buffer
   * @return RTMP event
   */
  private IRTMPEvent decodeClientBW(IoBuffer in) {
    return new ClientBW(in.getInt(), in.get());
  }
View Full Code Here

      ServerBW serverBW = new ServerBW((int) bwConfig
          .getDownstreamBandwidth() / 8);
      getChannel((byte) 2).write(serverBW);
    }
    if (bwConfig.getUpstreamBandwidth() > 0) {
      ClientBW clientBW = new ClientBW((int) bwConfig
          .getUpstreamBandwidth() / 8, (byte) 0);
      getChannel((byte) 2).write(clientBW);
      // Update generation of BytesRead messages
      // TODO: what are the correct values here?
      bytesReadInterval = (int) bwConfig.getUpstreamBandwidth() / 8;
View Full Code Here

   *
     * @param in                      Byte buffer
     * @return                        RTMP event
     */
    private IRTMPEvent decodeClientBW(ByteBuffer in) {
    return new ClientBW(in.getInt(), in.get());
  }
View Full Code Here

            if ( !( event instanceof IRTMPEvent ) ) {
                logger.debug( "skipping non rtmp event: " + event );
                return;
            }

            IRTMPEvent rtmpEvent = (IRTMPEvent) event;

            if ( logger.isDebugEnabled() ) {
                // logger.debug("rtmp event: " + rtmpEvent.getHeader() + ", " +
                // rtmpEvent.getClass().getSimpleName());
            }

            if ( !( rtmpEvent instanceof IStreamData ) ) {
                logger.debug( "skipping non stream data" );
                return;
            }

            if ( rtmpEvent.getHeader().getSize() == 0 ) {
                logger.debug( "skipping event where size == 0" );
                return;
            }

            if ( rtmpEvent instanceof VideoData ) {
View Full Code Here

TOP

Related Classes of org.red5.server.net.rtmp.event.ClientBW

Copyright © 2018 www.massapicom. 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.