Commit f7f50098 by aquilescanta Committed by Oliver Woodman

Add workaround for PlayReady issue with setMediaDrmSession

PiperOrigin-RevId: 239403506
parent a86a9137
...@@ -1623,6 +1623,12 @@ public abstract class MediaCodecRenderer extends BaseRenderer { ...@@ -1623,6 +1623,12 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
reinitializeCodec(); reinitializeCodec();
return; return;
} }
if (C.PLAYREADY_UUID.equals(sessionMediaCrypto.uuid)) {
// The PlayReady CDM does not implement setMediaDrmSession.
// TODO: Add API check once [Internal ref: b/128835874] is fixed.
reinitializeCodec();
return;
}
if (flushOrReinitializeCodec()) { if (flushOrReinitializeCodec()) {
// The codec was reinitialized. The new codec will be using the new DRM session, so there's // The codec was reinitialized. The new codec will be using the new DRM session, so there's
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment