-
Notifications
You must be signed in to change notification settings - Fork 256
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
chore: update travis to test vjs5/6 and chrome/firefox #241
Conversation
it's failing because of a breaking change in videojs 6 with regards to https://github.com/videojs/videojs-contrib-ads/blob/master/src/plugin.js#L185-L186 |
Hmm, seems like that's gonna be an issue we'll have to figure out. |
What change causes those lines to break? |
We've changed |
Is it really OK for there to be no way to get the actual src? |
It's not that there isn't really a way. It just requires going through the tech right now (There's no way to get it directly from the player). Thinking about what Basically, |
My understanding was that accessing the tech directly is an architectural antipattern, is that going to continue to be the case with vjs 6? Is this problem unique to contrib-ads for some reason? |
Yeah, we've pulled back the curtain on tech a bit. There are times when it's definitely valid, though, should still be discouraged. |
@brandonocasey If you don't mind, we can probably pretty easily update this PR to replace the EDIT: My $0.02 on talking directly with the tech is that it's kind of a grey area. As @gkatsev said there are definitely valid use-cases and this is one of them. I personally don't like that we expose a method, but require passing something to it. |
4a406bd
to
ad0d8d2
Compare
// If no browsers are specified, we enable `karma-detect-browsers` | ||
// this will detect all browsers that are available for testing | ||
if (!config.browsers.length) { | ||
detectBrowsers.enabled = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't karma-detect-browsers
and karma-qunit
be added to config.plugins
to have browser detection and running the tests in a browser work locally?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By default karma includes anything in plugins that matches the following: karma-*
. So the default works in cases like this where the plugin is named karma-detect-browsers
or karma-qunit
. So we don't have to explicitly define anything in the plugins array.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, good to know!
LGTM overall. |
LGTM, but should be tested before merging due to the code change. |
036d5d7
to
1ce92f0
Compare
available as |
What testing does this need? The source code changes are really minimal and would be caught in unit tests... |
We decided to test the VJS6 updates to IMA and contrib-ads together, so it's being tested that way. |
37632fe
to
d095086
Compare
6d19cfb
to
d095086
Compare
No description provided.