forked from shaka-project/shaka-player
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(offline): Load init segments first for keys
It is unlikely that we will be able to load DRM sessions inside the service worker for BG fetch. However, sometimes we have to get the DRM keys from the init segments. This changes Storage.downloadSegments_ to download the init segments first if it looks like they will contain needed init data to create license requests. This also fixes a typo that was preventing us from getting init data from segments, and adds a test that would catch that issue. Issue shaka-project#879 Change-Id: Ide859ed0eb2d9208150787f14d915135df681d96
- Loading branch information
Showing
3 changed files
with
187 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters