videogular2 icon indicating copy to clipboard operation
videogular2 copied to clipboard

Error with cue-points in Edge and IE11

Open GreyingRaven opened this issue 7 years ago • 1 comments
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

  1. Try to add a new cue
  2. Try to remove an existing cue

GreyingRaven avatar Nov 28 '17 10:11 GreyingRaven

The following polyfill will fix the issue for the time being.

window['VTTCue'] = window['VTTCue'] || window['TextTrackCue'];

sliceofbytes avatar May 07 '19 14:05 sliceofbytes