-
Notifications
You must be signed in to change notification settings - Fork 94
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
code crashes on MS Edge #352
Comments
I had the same issue, but |
2018 checking in. just confirming that this is still an issue. but much like those above, I took the quick fix route (which worked, thanks!) and moved on. sorry world. :) |
I had the same issue but with this way now it is working in 0.13.0 version, thank you so match I research too much but finally, it is working 😄 😃 |
2022 and this saved me too. Thank you for sharing this <3 |
Hi,
It looks like the WebVTT lib assumes the existence of
VTTCue
in thewindow
object passed in its constructor (and possibly VTTRegion), but it is not always true, i.e. whenimport
ing the lib ES6 style and under MS Edge.In those conditions, the WebVTT parser internal
parse
method throws an exception: "Object doesn't support this operation", happening there forVTTCue
.In my scenario, I found a workaround - set VTTCue as a prop on the window object manually:
I'll be happy to submit a PR if needed.
The text was updated successfully, but these errors were encountered: