docs: public int getTotalDurationFromFrameDurations(int[] frameDurationMs) {
      int totalMs = 0;
      for (int i = 0; i < frameDurationMs.length; i++) {
        totalMs += frameDurationMs[i];
      }
      return totalMs;
    }