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
dd45e17b
authored
2015-09-21 15:49:51 -0400
by
jrivera
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fixes to loadSegment since aborted and timeouts are now considered a type of error in videojs.xhr
1 parent
41b8bbfb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
src/videojs-hls.js
src/videojs-hls.js
View file @
dd45e17
...
...
@@ -875,12 +875,13 @@ videojs.Hls.prototype.loadSegment = function(segmentUri, offset) {
// the segment request is no longer outstanding
self
.
segmentXhr_
=
null
;
if
(
error
)
{
// if a segment request times out, we may have better luck with another playlist
if
(
request
.
timedout
)
{
self
.
bandwidth
=
1
;
return
self
.
playlists
.
media
(
self
.
selectPlaylist
());
}
// if a segment request times out, we may have better luck with another playlist
if
(
request
.
timedout
)
{
self
.
bandwidth
=
1
;
return
self
.
playlists
.
media
(
self
.
selectPlaylist
());
}
if
(
!
request
.
aborted
&&
error
)
{
// otherwise, try jumping ahead to the next segment
self
.
error
=
{
status
:
request
.
status
,
...
...
Please
register
or
sign in
to post a comment