getVideoFrameProcessingOffsetAverage

ExoPlayer extension function that calculates the metric to evaluate the rendering performance called Video Frame Processing Offset (VFPO). VFPO measures how early the player processes a video frame compared to its presentation time, in microseconds.

  • For example, if a video frame is processed by the player 30ms before the frame should be displayed on screen, the VFPO of this frame is 30000.

  • Similarly, if a video frame is processed too late by 10ms (the player’s current position has progressed beyond the frame’s presentation time), the VFPO for this frame is -10000 (and the video frame is dropped). The smooth playback, without dropped frames or audio underruns, is expected when the average VFPO is above 40000.

Return

video frame processing offset average computed by taking a sum of VFPOs captured over a playback time period and dividing the sum by the number of VFPOs captured over the same time period.