UNPKG

image-sequence-player

Version:

A video player that playing video with image sequence.

14 lines (12 loc) 314 B
const convertSecondToTime = (seconds, framerate) => { let convertString = new Date((seconds * 1000) / framerate) .toISOString() .substr(11, 8); if (convertString.substr(0, 2) === "00") { return convertString.substr(3, 5); } return convertString; }; module.exports = { convertSecondToTime };