-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes two main issues that could cause spurious RESTRICTIONS_CANNOT_BE_MET errors: 1. DrmEngine.getKeyStatuses() always returned the latest information, even if the information was incomplete. DrmEngine batches up multiple updates into one notification, so the getKeyStatuses() method should not expose incomplete information early. 2. Key status announcements happen without regard for session status, so we might get partial announcements when multiple sessions are required. For example, audio keys announced while waiting for video keys, or vice-versa. This would not occur for Widevine if content IDs are used, since content IDs cause all keys to be delivered at once. getKeyStatuses() will now return the same information that was in the most recent status callback, but will never expose that info early. And key status callbacks will be suppressed until all sessions have been loaded with licenses. This adds regression tests for both issues. Backported to v2.4.x Closes #1541 Change-Id: Iaab573be6568333423abf3450c6db00e62803145
- Loading branch information
1 parent
245a42b
commit c046081
Showing
2 changed files
with
150 additions
and
10 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