If dl time is falsy, set it to Infinity
Showing
1 changed file
with
4 additions
and
0 deletions
... | @@ -133,6 +133,10 @@ videojs.Hls.prototype.handleSourceOpen = function() { | ... | @@ -133,6 +133,10 @@ videojs.Hls.prototype.handleSourceOpen = function() { |
133 | 133 | ||
134 | segmentDlTime = (segmentDuration * newBitrate) / this.bandwidth; | 134 | segmentDlTime = (segmentDuration * newBitrate) / this.bandwidth; |
135 | 135 | ||
136 | if (!segmentDlTime) { | ||
137 | segmentDlTime = Infinity; | ||
138 | } | ||
139 | |||
136 | // this threshold is to account for having a high latency on the manifest | 140 | // this threshold is to account for having a high latency on the manifest |
137 | // request which is a somewhat small file. | 141 | // request which is a somewhat small file. |
138 | threshold = 10; | 142 | threshold = 10; | ... | ... |
-
Please register or sign in to post a comment