This repository has been archived by the owner on Apr 1, 2023. It is now read-only.
duration is in milliseconds, whereas HTMLMediaElement.duration
is in seconds
#73
Labels
Milestone
Just wanted to let you know that when you inspect a
<video />
element and grab theduration
from theHTMLVideoElement
(which inheritsHTMLMediaElement
) theduration
will be in seconds.It might be better to align
duration
returned by this plugin with theHTMLMediaElement
interface, unless there are other mainstream types that useduration
for ms instead.But it would be a breaking change, so not ideal 😅
The text was updated successfully, but these errors were encountered: