Delay fillBuffer. Upshift if dl time less than 1s.
Only set up timeupdate and waiting event listeners for fillBuffer and drainBuffer after we have upshifted. This is so that we would download the first segment of the new playlist if the player is setup with autoplay or a user clicks play too early. Also, we should only upshift if our estimated download time for the new segment is less than one second. This is done by estimating the duration length of the segment of the new playlist with the duration of the current segment in the current playlist.
Showing
1 changed file
with
29 additions
and
30 deletions
-
Please register or sign in to post a comment