videogular2
videogular2 copied to clipboard
Error with cue-points in Edge and IE11
trafficstars
Description
First of all, great work. this is an amazing app. Cue-Points don't work in MS browsers, they show but it gives errors when adding or removing
Currently using
- Angular 5.0.2
- [email protected]
- Microsoft Edge 40.15063.674.0
- Microsoft EdgeHTML 15.15063
- IExplorer: 11.647.15063.0
- IExplorer Update Version: 11.0.47 (KB4040685)
Expected Behavior
It should work as in other browsers, allowing addition and removal of cue-points
Actual Behavior
When you try to remove a cue-point it gives the following error: ERROR Error: Unexpected call to method or property access.
When you try to add a cue-point it gives the following error: ERROR ReferenceError: 'VTTCue' is undefined
Steps to Reproduce
To reproduce this behavior open the showroom with iExplorer or Edge
- Try to add a new cue
- Try to remove an existing cue
The following polyfill will fix the issue for the time being.
window['VTTCue'] = window['VTTCue'] || window['TextTrackCue'];