-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Player class missing attribute exports #637
Comments
You're right on these. |
A lot of these are exported at this point (fullscreen methods and ended). @iamjem - Do you still see a need for the others? |
Should be good now, I've just run into some headaches before trying to make some quick one-off custom components for projects where there wasn't access to certain parts of the API. |
@mmcc it's not the fullscreen methods there, it's the I labeled this as easy, hoping someone will pick it up and do a PR for it. :) @iamjem, in the next major version we're going to switch from a whitelist approach to a blacklist for variable mangling, so there should be less issue around this. |
selectSource can be used by some plugins, example this very dirty code : https://github.com/theonion/videojs-vast-plugin/blob/master/videojs.vast.js#L213 |
There are several important API methods not exported on
Player
class instances in the minified version of the source code. I can't imagine this is intentional?For example, all of these will return
undefined
when accessed on a player instance returned from the videojs constructor:I can see maybe hiding some of the fullscreen methods, but ultimately I think virtually every method on the player instance should be public.
The text was updated successfully, but these errors were encountered: