0

I'm using videojs and want to use the function as per docs formatTime, but I get as result undefined

I don't use npm package of videojs, instead, I have referenced the minified version 7.6.5 direct in my code.

Is there any extra file I should reference in this case?

DAG
  • 2,460
  • 5
  • 33
  • 61

1 Answers1

1

It's a method on videojs, not the player instance:

videojs.formatTime(100);
> "1:40"
misterben
  • 7,455
  • 2
  • 26
  • 47