Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read property 'code' of null #36

Open
synaesthesia opened this issue Apr 9, 2018 · 0 comments
Open

Uncaught TypeError: Cannot read property 'code' of null #36

synaesthesia opened this issue Apr 9, 2018 · 0 comments

Comments

@synaesthesia
Copy link

synaesthesia commented Apr 9, 2018

Hi,

in the error handler:

// listen to error events coming from the video tag
el.addEventListener('error', function(e) {

line

if (mediaError.code === mediaError.MEDIA_ERR_DECODE) {

I don't know why, but sometimes mediaError can be null.

Maybe could you just check if mediaError is not null before doing the comparaison ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant