Examples of SetBuffer


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

      case Ping.BUFFER_FULL:
        out.putInt(ping.getValue2());
        break;
      case Ping.CLIENT_BUFFER:
        if (ping instanceof SetBuffer) {
          SetBuffer setBuffer = (SetBuffer) ping;
          out.putInt(setBuffer.getStreamId());
          out.putInt(setBuffer.getBufferLength());
        } else {
          out.putInt(ping.getValue2());
          out.putInt(ping.getValue3());
        }
        break;
View Full Code Here

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

  /** {@inheritDoc} */
  @Override
  protected void onPing(RTMPConnection conn, Channel channel, Header source, Ping ping) {
    switch (ping.getEventType()) {
      case Ping.CLIENT_BUFFER:
        SetBuffer setBuffer = (SetBuffer) ping;
        // get the stream id
        int streamId = setBuffer.getStreamId();
        // get requested buffer size in milliseconds
        int buffer = setBuffer.getBufferLength();
        log.debug("Client sent a buffer size: {} ms for stream id: {}", buffer, streamId);
        IClientStream stream = null;
        if (streamId != 0) {
          // The client wants to set the buffer time
          stream = conn.getStreamById(streamId);
View Full Code Here

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

    }
    // control type
    short type = in.getShort();
    switch (type) {
      case Ping.CLIENT_BUFFER:
        ping = new SetBuffer(in.getInt(), in.getInt());
        break;
      case Ping.PING_SWF_VERIFY:
        // only contains the type (2 bytes)
        ping = new Ping(type);
        break;
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.