Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
videojs-contrib-hls
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
6ca15caa
authored
2014-10-29 19:27:54 -0400
by
Gary Katsevman
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
If dl time is falsy, set it to Infinity
1 parent
5e255431
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
src/videojs-hls.js
src/videojs-hls.js
View file @
6ca15ca
...
...
@@ -133,6 +133,10 @@ videojs.Hls.prototype.handleSourceOpen = function() {
segmentDlTime
=
(
segmentDuration
*
newBitrate
)
/
this
.
bandwidth
;
if
(
!
segmentDlTime
)
{
segmentDlTime
=
Infinity
;
}
// this threshold is to account for having a high latency on the manifest
// request which is a somewhat small file.
threshold
=
10
;
...
...
Please
register
or
sign in
to post a comment