Search code examples
javascriptbrightcove

BrightCove Video Duration Data type


How we convert Bright Cove video duration to HH:MM:SSS in Javascript?


Solution

  • Brightcove's API returns the duration in milliseconds. Divide by 1000 then apply one of the answers for formatting seconds as HH:MM:SS e.g. JavaScript seconds to time string with format hh:mm:ss