Closed mysuf closed 6 years ago
Hmm, it looks like the test needs to mock currentSources
instead of currentSrc
, does that fix it? I'm not sure why the test has two places that it sets updatedSrc
so maybe it could use cleanup.
1 test failed on something else on one of nodes. Dunno why..
It cannot reach updatedSrc in tech_.src. I think that it should contain only getter return 'ad.webm';
Seems fine to me, the only thing I'd be slightly concerned about, though, maybe it's not worth being concerned over it, is that if techs or source handlers are added during the ad, we may end up selecting a different source than what was originally selected.
Yep, it is not absolutely bulletproof. But adding some hooks during ad playback sounds error prone to me at all..
I reran the build job that failed and it passed so I think it was a fluke.
I think selecting a different rendition after ads doesn't seem unreasonable, it may even be better in some cases.
LGTM
I am currently testing stuff for a release of https://github.com/videojs/videojs-contrib-ads/pull/407, in order to not restart testing I'll do this as a second release after. Sorry for the delay.
I modified that test to form that better reflects current state.