Use presentation time stamp to calculate playlist duration
This code uses the presentation timestamp of the ts segment to calculate its exact duration, since this may differ by fractions of a second from what is reported. Using the exact, calculated 'preciseDuration' allows for smoother seeking and calculation of the total playlist duration, which previously (especially in short videos) was reported erroneously and made the play head overrun the end of the progress bar.
Showing
2 changed files
with
57 additions
and
4 deletions
-
Please register or sign in to post a comment