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
4290c342
authored
2014-09-20 00:07:10 +0900
by
Tetsuya Morimoto
Committed by
Gary Katsevman
2014-10-02 15:08:14 -0400
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Set responseText from server on error to use as a custom information
1 parent
079d7092
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
src/playlist-loader.js
src/playlist-loader.js
View file @
4290c34
...
...
@@ -65,6 +65,7 @@
loader
.
error
=
{
status
:
xhr
.
status
,
message
:
'HLS playlist request error at URL: '
+
url
,
responseText
:
xhr
.
responseText
,
code
:
(
xhr
.
status
>=
500
)
?
4
:
2
};
return
loader
.
trigger
(
'error'
);
...
...
@@ -226,6 +227,7 @@
loader
.
error
=
{
status
:
this
.
status
,
message
:
'HLS playlist request error at URL: '
+
srcUrl
,
responseText
:
this
.
responseText
,
code
:
2
// MEDIA_ERR_NETWORK
};
return
loader
.
trigger
(
'error'
);
...
...
Please
register
or
sign in
to post a comment