The response that it returns is:
ERROR MSG: Shaka Error NETWORK.BAD_HTTP_STATUS (https://dash.akamaized.net/dash264/TestCases/1c/q,404,,[object Object],0) - Error loading asset
However I'd like to only use the code BAD_HTTP_STATUS , BAD_ENCODING, etc...
Is there a method to get this, or is the only way to slice the error message.
I didn't find anything specific in the documentation.
I'm trying to setup error handling for the player with
errorCallback
, on the following way (playing some broken url):The response that it returns is:
ERROR MSG: Shaka Error NETWORK.BAD_HTTP_STATUS (https://dash.akamaized.net/dash264/TestCases/1c/q,404,,[object Object],0) - Error loading asset
However I'd like to only use the code
BAD_HTTP_STATUS
,BAD_ENCODING
, etc...Is there a method to get this, or is the only way to slice the error message. I didn't find anything specific in the documentation.