I am using videojs . It is self hosted and to get video it is making http hit. There is authentication I have put which which goes with the src. The status code I am getting is 401. How can I print user understandable error message .
Currently I am getting "video could not be loaded, either because the server or network failed or because the format is not supported." . But i want to display error as per status code.
Need Assistance .
Thanks in advance
You could try using an xmlhttp head request (after a video error) to capture a specific http status code...