Videos with infinite duration display duration as "(hh:)mm:ss/Infinity:NaN:...
source link: https://bugzilla.mozilla.org/show_bug.cgi?id=1808825
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Details
(Whiteboard: [fidefe-pip3])
If you PiP a video (person or stream) from a voice channel in Discord, it is a video
element with a .duration
of Infinity
.
This causes a video duration display of e.g. for an elapsed time of 1min 55s 1:55 / Infinity:NaN:NaN
(This is because for a number num
, Infinity / num
is Infinity
and Infinity % num
is NaN
in PictureInPictureChild.timeFromSeconds
)
My guess is we probably want to omit the second half for videos of infinite duration.
(Interestingly this isn't true of all unending streams. YouTube live videos without end (like the venerable lofi hip hop radio - beats to relax/study to) have a duration of 14h. And NASA's non-Youtube view from the ISS has a duration of 4294967295
aka 2^32 - 1
aka 0xFFFFFFFF
which is displayed as 1193046:28:15
)
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK