OpenTV Player Web HTML5

Class: RenderingStatistics

RenderingStatistics

Provides rendering statistics. Objects of this class are instantiated by OtvToolkit, and should not be instantiated directly. The statistics available will depend on the type of content being downloaded.

new RenderingStatistics()

Methods

getFrameDrops()

Gets the number of dropped video frames since the start of playback.

Returns:
the number of dropped video frames since the start of playback, or 0 if it has not been defined.

getFrameDropsPerSecond()

Gets the number of video frames dropped each second.

Returns:
the number of video frames dropped each second, or 0 if it has not been defined.

getFramesPerSecond()

Gets the frame rate of the current content as measured during playback.

Returns:
The frame rate, or 0 if it has not been defined.

getFramesPerSecondNominal()

Gets the frame rate of the current content as announced in the stream.

Returns:
The frame rate found in the metadata of the stream, or 0 if not present in the stream defined or if no content has been loaded.