mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Don't restore DRM keys before releasing them
#minor-release PiperOrigin-RevId: 375436117
This commit is contained in:
parent
8d550bf05b
commit
5afc915e51
2 changed files with 4 additions and 5 deletions
|
|
@ -57,6 +57,9 @@
|
||||||
* PlayerNotificationManager:
|
* PlayerNotificationManager:
|
||||||
* Add `PendingIntent.FLAG_IMMUTABLE` flag to BroadcastReceiver to support
|
* Add `PendingIntent.FLAG_IMMUTABLE` flag to BroadcastReceiver to support
|
||||||
Android 12.
|
Android 12.
|
||||||
|
* DRM:
|
||||||
|
* Don't restore offline keys before releasing them. In OEMCrypto v16+ keys
|
||||||
|
must be released without restoring them first.
|
||||||
|
|
||||||
### 2.14.0 (2021-05-13)
|
### 2.14.0 (2021-05-13)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -430,11 +430,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
|
||||||
case DefaultDrmSessionManager.MODE_RELEASE:
|
case DefaultDrmSessionManager.MODE_RELEASE:
|
||||||
Assertions.checkNotNull(offlineLicenseKeySetId);
|
Assertions.checkNotNull(offlineLicenseKeySetId);
|
||||||
Assertions.checkNotNull(this.sessionId);
|
Assertions.checkNotNull(this.sessionId);
|
||||||
// It's not necessary to restore the key before releasing it but this serves as a good
|
|
||||||
// fast-failure check.
|
|
||||||
if (restoreKeys()) {
|
|
||||||
postKeyRequest(offlineLicenseKeySetId, ExoMediaDrm.KEY_TYPE_RELEASE, allowRetry);
|
postKeyRequest(offlineLicenseKeySetId, ExoMediaDrm.KEY_TYPE_RELEASE, allowRetry);
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue