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 @@
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');
......