-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Is your feature request related to a problem? Please describe.
Cobalt ( https://cobalt.dev ) currently doesn't work with Shaka out of the box, due to a few minor missing APIs that currently throw JavaScript exceptions.
Describe the solution you'd like
I have a small patch that stubs out the usage of video.textTracks
and document.createNodeIterator
that would disable textTracks and some XSS security guards in Shaka.
Describe alternatives you've considered
We could also try and add stub implementations of those web APIs in Cobalt quite easily, and we likely will. However, that wouldn't let all the deployed versions of Cobalt to run with Shaka.
Additional context
Preview of quick 15-minute changes here ( i would remove the lint suppressions, of course ):
kaidokert@f516703