-
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
fix: Fix drm.keySystemsMapping config #4425
fix: Fix drm.keySystemsMapping config #4425
Conversation
This fixes the config by adding a missing override in the config parser. This also adds test coverage for the feature. Closes shaka-project#4422
Incremental code coverage: 100.00% |
drmEngine.initForPlayback(variants, manifest.offlineSessionIds)) | ||
.toBeRejected(); | ||
|
||
expect(drmEngine.initialized()).toBe(false); |
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.
FMI, this scenario is set to fail DRM initialization because in L690, it was set to fail all key systems?
But even then, it still reaches these lines:
shaka-player/lib/media/drm_engine.js
Lines 351 to 361 in c935cc1
// Make sure all the drm infos are valid and filled in correctly. | |
for (const variant of variants) { | |
const drmInfos = this.getVariantDrmInfos_(variant); | |
for (const info of drmInfos) { | |
shaka.media.DrmEngine.fillInDrmInfoDefaults_( | |
info, | |
shaka.util.MapUtils.asMap(this.config_.servers), | |
shaka.util.MapUtils.asMap(this.config_.advanced || {}), | |
this.config_.keySystemsMapping); | |
} | |
} |
This fixes the config by adding a missing override in the config parser. This also adds test coverage for the feature. Closes #4422
This fixes the config by adding a missing override in the config parser. This also adds test coverage for the feature. Closes #4422
This fixes the config by adding a missing override in the config parser. This also adds test coverage for the feature.
Closes #4422