Change error codes
Created by: nicosang
Hi,
this PR has to modify error codes in order to be unique. Indeed, html5 video element returns error codes :
- 1 = MEDIA_ERR_ABORTED - fetching process aborted by user
- 2 = MEDIA_ERR_NETWORK - error occurred when downloading
- 3 = MEDIA_ERR_DECODE - error occurred when decoding
- 4 = MEDIA_ERR_SRC_NOT_SUPPORTED - audio/video not supported
- 5 = MEDIA_ERR_ENCRYPTED
So, dash.js error codes need to be shift to start at 10 value.
Nico