Package com.amazonaws.ivs.player
Class Statistics
java.lang.Object
com.amazonaws.ivs.player.Statistics
Contains various playback statistics for a player instance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the total number of decoded video frames during the playback session.intReturns the total number of dropped video frames during the playback session.intReturns the current frame rate of the video in frames per second, 0 if no video is displayed.intReturns the total number of rendered (displayed) video frames during the playback session.intReturns the current bitrate in bps of the video track.voidsetBitRate(int bitRate) Sets the current bitrate in bps of the video track.voidsetDecodedFrames(int decodedFrames) Sets the total number of decoded video frames during the playback session.voidsetDroppedFrames(int droppedFrames) Sets the total number of dropped video frames during the playback session.voidsetFrameRate(int frameRate) Sets the current frame rate of the video in frames per second, 0 if no video is displayed.voidsetRenderedFrames(int renderedFrames) Sets the total number of rendered (displayed) video frames during the playback session.toString()
-
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
-