diff --git a/lib/dash/dash_parser.js b/lib/dash/dash_parser.js index 169e49200b..7a3c28fa55 100644 --- a/lib/dash/dash_parser.js +++ b/lib/dash/dash_parser.js @@ -485,6 +485,11 @@ shaka.dash.DashParser = class { this.manifest_.variants = this.periodCombiner_.getVariants(); this.manifest_.textStreams = this.periodCombiner_.getTextStreams(); this.manifest_.imageStreams = this.periodCombiner_.getImageStreams(); + + // Re-filter the manifest. This will check any configured restrictions on + // new variants, and will pass any new init data to DrmEngine to ensure + // that key rotation works correctly. + this.playerInterface_.filter(this.manifest_); } // Add text streams to correspond to closed captions. This happens right