Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f7f50098
authored
Mar 20, 2019
by
aquilescanta
Committed by
Oliver Woodman
Mar 20, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add workaround for PlayReady issue with setMediaDrmSession
PiperOrigin-RevId: 239403506
parent
a86a9137
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
library/core/src/main/java/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.java
library/core/src/main/java/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.java
View file @
f7f50098
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment