Class Statistics

java.lang.Object
com.amazonaws.ivs.player.Statistics

public class Statistics extends Object
Contains various playback statistics for a player instance.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the total number of decoded video frames during the playback session.
    int
    Returns the total number of dropped video frames during the playback session.
    int
    Returns the current frame rate of the video in frames per second, 0 if no video is displayed.
    int
    Returns the total number of rendered (displayed) video frames during the playback session.
    int
    Returns the current bitrate in bps of the video track.
    void
    setBitRate(int bitRate)
    Sets the current bitrate in bps of the video track.
    void
    setDecodedFrames(int decodedFrames)
    Sets the total number of decoded video frames during the playback session.
    void
    setDroppedFrames(int droppedFrames)
    Sets the total number of dropped video frames during the playback session.
    void
    setFrameRate(int frameRate)
    Sets the current frame rate of the video in frames per second, 0 if no video is displayed.
    void
    setRenderedFrames(int renderedFrames)
    Sets the total number of rendered (displayed) video frames during the playback session.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Statistics

      public Statistics()
  • Method Details

    • getVideoBitRate

      public int getVideoBitRate()
      Returns the current bitrate in bps of the video track.
    • getFrameRate

      public int getFrameRate()
      Returns the current frame rate of the video in frames per second, 0 if no video is displayed.
    • getDroppedFrames

      public int getDroppedFrames()
      Returns the total number of dropped video frames during the playback session.
    • getDecodedFrames

      public int getDecodedFrames()
      Returns the total number of decoded video frames during the playback session.
    • getRenderedFrames

      public int getRenderedFrames()
      Returns the total number of rendered (displayed) video frames during the playback session.
    • setBitRate

      public void setBitRate(int bitRate)
      Sets the current bitrate in bps of the video track.
      Parameters:
      bitRate - The bitrate in bps.
    • setDecodedFrames

      public void setDecodedFrames(int decodedFrames)
      Sets the total number of decoded video frames during the playback session.
      Parameters:
      decodedFrames - The total number of decoded video frames.
    • setDroppedFrames

      public void setDroppedFrames(int droppedFrames)
      Sets the total number of dropped video frames during the playback session.
      Parameters:
      droppedFrames - The total number of dropped video frames.
    • setFrameRate

      public void setFrameRate(int frameRate)
      Sets the current frame rate of the video in frames per second, 0 if no video is displayed.
      Parameters:
      frameRate - The current frame rate in frames per second.
    • setRenderedFrames

      public void setRenderedFrames(int renderedFrames)
      Sets the total number of rendered (displayed) video frames during the playback session.
      Parameters:
      renderedFrames - The total number of rendered (displayed) video frames.
    • toString

      public String toString()
      Overrides:
      toString in class Object