• Estimates frame rate by finding the nearest matching value.

    Parameters

    • frameRate: number

      The frame rate to estimate.

    • rates: number[] = DEFAULT_FRAME_RATES

      The rates to compare with.

    Returns number