convertToTimecode(timeInSeconds) {
    const progress = timeInSeconds * 1000;
    const hours = Math.floor(progress / (60 * 60 * 1000));
    const minutes = Math.floor((progress / (60 * 1000)) % 60);
    const seconds = Math.floor((progress / 1000) % 60);
    const milliseconds = Math.floor(progress % 1000);
    return `${util.leftpad(hours, 2)}:${util.leftpad(
      minutes,
      2
    )}:${util.leftpad(seconds, 2)}.${util.leftpad(milliseconds, 3)}`;
  }
/**
   * Formats time in seconds to VAST timecode (e.g. 00:00:10.000)
   *
   * @param {Number} timeInSeconds - Number in seconds
   * @return {String}
   */
Formats time in seconds to VAST timecode
@param {Number} timeInSeconds - Number in seconds
@return {String}
Formats time in seconds to VAST timecode @param { Number } timeInSeconds - Number in seconds @return { String }
convertToTimecode(timeInSeconds) {
    const progress = timeInSeconds * 1000;
    const hours = Math.floor(progress / (60 * 60 * 1000));
    const minutes = Math.floor((progress / (60 * 1000)) % 60);
    const seconds = Math.floor((progress / 1000) % 60);
    const milliseconds = Math.floor(progress % 1000);
    return `${util.leftpad(hours, 2)}:${util.leftpad(
      minutes,
      2
    )}:${util.leftpad(seconds, 2)}.${util.leftpad(milliseconds, 3)}`;
  }
convertToTimecode ( timeInSeconds ) { const progress = timeInSeconds * 1000 ; const hours = Math . floor ( progress / ( 60 * 60 * 1000 ) ) ; const minutes = Math . floor ( ( progress / ( 60 * 1000 ) ) % 60 ) ; const seconds = Math . floor ( ( progress / 1000 ) % 60 ) ; const milliseconds = Math . floor ( progress % 1000 ) ; return ` ${ util . leftpad ( hours , 2 ) } ${ util . leftpad ( minutes , 2 ) } ${ util . leftpad ( seconds , 2 ) } ${ util . leftpad ( milliseconds , 3 ) } ` ; }
Formats time in seconds to VAST timecode (e.g.
Formats time in seconds to VAST timecode ( e . g .