-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Supporting Cobalt #5804
Comments
I have reviewed the link, I agree with including the changes in lib/util/xml_utils.js, but I think the changes in lib/text/simple_text_displayer.js should be to make a new text displayer that does nothing, what do you think? |
Yep, i think there was only one call site for the textDisplayer so that change would be cleaner and would throw less surprises. |
I have created #5805 to solve the problem of For the other change I am willing to review your PR if you are interested in sending it, I think the new class should be called |
Thanks much for such a quick response - i'll put a PR together and send it. |
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
anddocument.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
The text was updated successfully, but these errors were encountered: