Question

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

Was it helpful?

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top