4290c342 by Tetsuya Morimoto Committed by Gary Katsevman

Set responseText from server on error to use as a custom information

1 parent 079d7092
...@@ -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');
......