Open liesahead opened 3 years ago
This condition (inside youtube
plugin) is never true in some cases (I mean the cases when after page reload duration is evaluated correctly), both values are 10
but displayed value is still 00:00
.
In this repro (made from youtube demo codepen) you can also see that initially duration is displayed as 00:00
. There is no such problems with vimeo videos though.
It seems I found the solution: added line 4444 as timeUpdate
updates only the current-time
. Do you want me to create a pull request for that change?
can someone please accept that pr?
There was similar issue some time ago #601. Is there a way to update duration after init somehow? Sometimes it shows duration correctly even after page reload. Correct value for this specific video case is
9.341
which is returned sometimes.So the getter is always returning approximately correct value while the UI displays
00:00
.Expected behaviour
Video duration is always correct.
Actual behaviour
Different durations of the same video displayed (0, 9 and 10 seconds).
Steps to reproduce
00:00
.