Class ConnectionConsumer

java.lang.Object
org.red5.server.stream.consumer.ConnectionConsumer
All Implemented Interfaces:
IConsumer, IMessageComponent, IPipeConnectionListener, IPushableConsumer

public class ConnectionConsumer extends Object implements IPushableConsumer, IPipeConnectionListener
RTMP connection consumer.
  • Field Details

    • log

      private static final org.slf4j.Logger log
    • KEY

      public static final String KEY
      Connection consumer class name
    • conn

      private RTMPConnection conn
      Connection object
    • video

      private Channel video
      Video channel
    • audio

      private Channel audio
      Audio channel
    • data

      private Channel data
      Data channel
    • chunkSize

      private int chunkSize
      Chunk size. Packets are sent chunk-by-chunk.
    • chunkSizeSent

      private AtomicBoolean chunkSizeSent
      Whether or not the chunk size has been sent. This seems to be required for h264.
  • Constructor Details

    • ConnectionConsumer

      public ConnectionConsumer(RTMPConnection conn, Channel videoChannel, Channel audioChannel, Channel dataChannel)
      Create RTMP connection consumer for given connection and channels.
      Parameters:
      conn - RTMP connection
      videoChannel - Video channel
      audioChannel - Audio channel
      dataChannel - Data channel
    • ConnectionConsumer

      public ConnectionConsumer(Channel videoChannel, Channel audioChannel, Channel dataChannel)
      Create connection consumer without an RTMP connection.
      Parameters:
      videoChannel - video channel
      audioChannel - audio channel
      dataChannel - data channel
  • Method Details