Set responseText from server on error to use as a custom information
Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -65,6 +65,7 @@ | ... | @@ -65,6 +65,7 @@ |
65 | loader.error = { | 65 | loader.error = { |
66 | status: xhr.status, | 66 | status: xhr.status, |
67 | message: 'HLS playlist request error at URL: ' + url, | 67 | message: 'HLS playlist request error at URL: ' + url, |
68 | responseText: xhr.responseText, | ||
68 | code: (xhr.status >= 500) ? 4 : 2 | 69 | code: (xhr.status >= 500) ? 4 : 2 |
69 | }; | 70 | }; |
70 | return loader.trigger('error'); | 71 | return loader.trigger('error'); |
... | @@ -226,6 +227,7 @@ | ... | @@ -226,6 +227,7 @@ |
226 | loader.error = { | 227 | loader.error = { |
227 | status: this.status, | 228 | status: this.status, |
228 | message: 'HLS playlist request error at URL: ' + srcUrl, | 229 | message: 'HLS playlist request error at URL: ' + srcUrl, |
230 | responseText: this.responseText, | ||
229 | code: 2 // MEDIA_ERR_NETWORK | 231 | code: 2 // MEDIA_ERR_NETWORK |
230 | }; | 232 | }; |
231 | return loader.trigger('error'); | 233 | return loader.trigger('error'); | ... | ... |
-
Please register or sign in to post a comment