Closed francoism90 closed 1 year ago
I'm probing media files using getDurationInSeconds(), however it doesn't return the correct timestamp.
getDurationInSeconds()
Dashjs shows the correct timestamp 00:00:12, this package 00:00:11.
00:00:12
00:00:11
If a rounded number is really needed, I would use ceil instead of round, as this should correct the seconds number.
ceil
round
Thanks!
Hi, thanks for your PR! This could be a breaking change so I'm not going to change this. If need more precision, you can use the getDurationInMiliseconds method.
getDurationInMiliseconds
I'm probing media files using
getDurationInSeconds()
, however it doesn't return the correct timestamp.Dashjs shows the correct timestamp
00:00:12
, this package00:00:11
.If a rounded number is really needed, I would use
ceil
instead ofround
, as this should correct the seconds number.Thanks!