mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-25 17:45:03 +03:00
6143a6d314
This was broken accidentally during MediaCapabilities refactoring. This does not affect any release version. The filtering step does two things: it applys the "restrictions" config to the streams in the manifest, and it sends DRM init data to DrmEngine for all streams in case new sessions need to be created. For key rotation, it is critical to create new sessions in DrmEngine. The init datas for new periods are added to existing streams when the new period's streams are stitched onto the old ones. The restrictions config should also be applied on manifest update, since the update could have created some new streams with characteristics outside of the current restrictions config. Closes #3169 Change-Id: I716c2978c7394d7bb56227aa1854392a10eae058