Allow Reloading Partially-Released Licenses
(This is a merge of http://go/wvgerrit/62780) The EME spec requires that it be possible to do the following flow: 1) Generate a release request for a persistent session. 2) Close the session. 3) Load the persistent session. 4) Update the session with the release response. This flow is used by Netflix in their API as well. However, our code did not support this flow, as it rejected attempts to reload partially-released sessions. This patch changes attempts to load sessions that have already had release messages generated into release-retry reloads, allowing them to be released. Bug: 113167010 Test: CE CDM Unit Tests Test: Android CDM Unit Tests Change-Id: I75bb7c75911e0fad1584bd8dd27f83c17f73bf45
This commit is contained in:
@@ -60,7 +60,7 @@ class CdmSession {
|
||||
WvCdmEventListener* event_listener);
|
||||
|
||||
virtual CdmResponseType RestoreOfflineSession(
|
||||
const CdmKeySetId& key_set_id, const CdmLicenseType license_type);
|
||||
const CdmKeySetId& key_set_id, CdmLicenseType license_type);
|
||||
virtual CdmResponseType RestoreUsageSession(
|
||||
const DeviceFiles::CdmUsageData& usage_data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user