Class PublishStatsEvent

java.lang.Object
io.antmedia.analytic.model.AnalyticEvent
io.antmedia.analytic.model.PublishStatsEvent

public class PublishStatsEvent extends AnalyticEvent
  • Field Details

    • EVENT_PUBLISH_STATS

      public static final String EVENT_PUBLISH_STATS
      See Also:
    • totalByteReceived

      private long totalByteReceived
    • byteTransferred

      private long byteTransferred
      Amount of byte transferred between loggings
    • durationMs

      private long durationMs
    • width

      private int width
      Width of the stream
    • height

      private int height
      Height of the stream
    • speed

      private double speed
      Speed of the stream. It should be around 1.0x for RTMP, RTSP, SRT streams. This value does not make sense if it's WebRTC
    • inputQueueSize

      private int inputQueueSize
      The current size of the input queue.
    • encodingQueueSize

      private int encodingQueueSize
      The current size of the queue of frames awaiting encoding.
    • droppedFrameCountInEncoding

      private int droppedFrameCountInEncoding
      Indicates that frames were dropped during the encoding process. Frames are dropped if the size of the encoding queue exceeds the threshold defined in AppSettings#encodingQueueSize.
    • droppedPacketCountInIngestion

      private int droppedPacketCountInIngestion
      Indicates that packets were dropped during the ingestion. Packets are dropped if the size of the inputQueueSize exceeds the threshold defined in AppSettings#encodingQueueSize.
    • roundTripTimeMs

      private int roundTripTimeMs
      The round trip time of the stream. It's meaningful for WebRTC streams
    • jitterMs

      private int jitterMs
      The jitter of the stream. It's meaningful for WebRTC streams
    • packetLostRatio

      private double packetLostRatio
      The packet lost ratio of the stream. It's meaningful for WebRTC streams
    • packetsLost

      private int packetsLost
      The total number of packets lost during WebRTC streaming
    • remoteIp

      private String remoteIp
      The remote IP of the broadaster
    • userAgent

      private String userAgent
      The user agent of the broadcaster
  • Constructor Details

    • PublishStatsEvent

      public PublishStatsEvent()
  • Method Details

    • getTotalByteReceived

      public long getTotalByteReceived()
    • setTotalByteReceived

      public void setTotalByteReceived(long totalByteReceived)
    • getDurationMs

      public long getDurationMs()
    • setDurationMs

      public void setDurationMs(long durationMs)
    • getWidth

      public int getWidth()
    • setWidth

      public void setWidth(int width)
    • getHeight

      public int getHeight()
    • setHeight

      public void setHeight(int height)
    • getByteTransferred

      public long getByteTransferred()
    • setByteTransferred

      public void setByteTransferred(long byteTransferred)
    • getSpeed

      public double getSpeed()
      Returns:
      the speed
    • setSpeed

      public void setSpeed(double speed)
      Parameters:
      speed - the speed to set
    • getInputQueueSize

      public int getInputQueueSize()
      Returns:
      the inputQueueSize
    • setInputQueueSize

      public void setInputQueueSize(int inputQueueSize)
      Parameters:
      inputQueueSize - the inputQueueSize to set
    • getEncodingQueueSize

      public int getEncodingQueueSize()
      Returns:
      the encodingQueueSize
    • setEncodingQueueSize

      public void setEncodingQueueSize(int encodingQueueSize)
      Parameters:
      encodingQueueSize - the encodingQueueSize to set
    • getDroppedFrameCountInEncoding

      public int getDroppedFrameCountInEncoding()
      Returns:
      the droppedFrameCountInEncoding
    • setDroppedFrameCountInEncoding

      public void setDroppedFrameCountInEncoding(int droppedFrameCountInEncoding)
      Parameters:
      droppedFrameCountInEncoding - the droppedFrameCountInEncoding to set
    • getDroppedPacketCountInIngestion

      public int getDroppedPacketCountInIngestion()
      Returns:
      the droppedPacketCountInIngestion
    • setDroppedPacketCountInIngestion

      public void setDroppedPacketCountInIngestion(int droppedPacketCountInIngestion)
      Parameters:
      droppedPacketCountInIngestion - the droppedPacketCountInIngestion to set
    • getRoundTripTimeMs

      public int getRoundTripTimeMs()
      Returns:
      the roundTripTimeMs
    • setRoundTripTimeMs

      public void setRoundTripTimeMs(int roundTripTimeMs)
      Parameters:
      roundTripTimeMs - the roundTripTimeMs to set
    • getJitterMs

      public int getJitterMs()
      Returns:
      the jitterMs
    • setJitterMs

      public void setJitterMs(int jitterMs)
      Parameters:
      jitterMs - the jitterMs to set
    • getPacketLostRatio

      public double getPacketLostRatio()
      Returns:
      the packetLostRatio
    • setPacketLostRatio

      public void setPacketLostRatio(double packetLostRatio)
      Parameters:
      packetLostRatio - the packetLostRatio to set
    • getPacketsLost

      public int getPacketsLost()
      Returns:
      the packetsLost
    • setPacketsLost

      public void setPacketsLost(int packetsLost)
      Parameters:
      packetsLost - the packetsLost to set
    • getRemoteIp

      public String getRemoteIp()
      Returns:
      the remoteIp
    • setRemoteIp

      public void setRemoteIp(String remoteIp)
      Parameters:
      remoteIp - the remoteIp to set
    • getUserAgent

      public String getUserAgent()
      Returns:
      the userAgent
    • setUserAgent

      public void setUserAgent(String userAgent)
      Parameters:
      userAgent - the userAgent to set