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
af5557a7
authored
2014-06-03 13:34:22 -0400
by
David LaPalomento
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Rename variable
`abortTimeout` is a little less overloaded than `timeout`.
1 parent
badf3bca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/videojs-hls.js
src/videojs-hls.js
View file @
af5557a
...
...
@@ -551,7 +551,7 @@ xhr = videojs.Hls.xhr = function(url, callback) {
timeout
:
45
*
1000
},
request
,
t
imeout
;
abortT
imeout
;
if
(
typeof
callback
!==
'function'
)
{
callback
=
function
()
{};
...
...
@@ -577,7 +577,7 @@ xhr = videojs.Hls.xhr = function(url, callback) {
request
.
timeout
=
options
.
timeout
;
}
else
{
// polyfill XHR2 by aborting after the timeout
t
imeout
=
window
.
setTimeout
(
function
()
{
abortT
imeout
=
window
.
setTimeout
(
function
()
{
if
(
request
.
readystate
!==
4
)
{
request
.
abort
();
}
...
...
@@ -592,7 +592,7 @@ xhr = videojs.Hls.xhr = function(url, callback) {
}
// clear outstanding timeouts
window
.
clearTimeout
(
t
imeout
);
window
.
clearTimeout
(
abortT
imeout
);
// request error
if
(
this
.
status
>=
400
||
this
.
status
===
0
)
{
...
...
Please
register
or
sign in
to post a comment