I am getting the following error from the mediaError eventListener
Uncaught TypeError: Cannot read property 'code' of null
at HTMLVideoElement.<anonymous>
Which comes from:
// listen to error events coming from the video tag
el.addEventListener('error', function(e) {
var mediaError = e.currentTarget.error; // => null
if (mediaError.code === mediaError.MEDIA_ERR_DECODE) {
videoTagErrorHandler();
} else {
console.error('Error loading media: File could not be played');
}
});
I am getting the following error from the mediaError eventListener
Which comes from:
Any idea why this is occurring?