docs: public int getFrameForTimestampMs(int frameTimestampsMs[], int timestampMs) {
      int index = Arrays.binarySearch(frameTimestampsMs, timestampMs);
      if (index < 0) {
        return -index - 1 - 1;
      } else {
        return index;
      }
    }