Closed
Description
Hi, i'm trying to display error messages based on the body returned in failed HTTP requests (auth, geo error etc). I see that the XMLHTTPRequest
object with status and body is available under the details
property of the error object passed to the error handler. The problem is that in the compiled version the xhr
property name has been mangled by the closure compiler.
To make it work i guess i have to add something to externs/
but not sure how. Just a file with Error.xhr;
? The error object is created in lib/util/ajax_request.js:shaka.util.AjaxRequest.prototype.createError_.
Maybe there is some better way of doing this?
Currently using shaka-player 1.6.4.