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
0cc1e514
authored
Sep 11, 2019
by
aquilescanta
Committed by
Oliver Woodman
Sep 13, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add acquirePlaceholderSession to DrmSessionManager
Issue:#4867 PiperOrigin-RevId: 268472704
parent
890700fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
library/core/src/main/java/com/google/android/exoplayer2/drm/DrmSessionManager.java
library/core/src/main/java/com/google/android/exoplayer2/drm/DrmSessionManager.java
View file @
0cc1e514
...
@@ -89,6 +89,23 @@ public interface DrmSessionManager<T extends ExoMediaCrypto> {
...
@@ -89,6 +89,23 @@ public interface DrmSessionManager<T extends ExoMediaCrypto> {
boolean
canAcquireSession
(
DrmInitData
drmInitData
);
boolean
canAcquireSession
(
DrmInitData
drmInitData
);
/**
/**
* Returns a {@link DrmSession} with an acquired reference that does not execute key requests.
* Returns null if placeholder sessions are not supported by this DRM session manager.
*
* <p>Placeholder {@link DrmSession DrmSessions} may be used to configure secure decoders for
* playback of clear samples, which reduces the costs of transitioning between clear and encrypted
* content periods.
*
* @param playbackLooper The looper associated with the media playback thread.
* @return The placeholder DRM session, or null if this DRM session manager does not support
* placeholder sessions.
*/
@Nullable
default
DrmSession
<
T
>
acquirePlaceholderSession
(
Looper
playbackLooper
)
{
return
null
;
}
/**
* Returns a {@link DrmSession} with an acquired reference for the specified {@link DrmInitData}.
* Returns a {@link DrmSession} with an acquired reference for the specified {@link DrmInitData}.
*
*
* <p>The caller must call {@link DrmSession#releaseReference} to decrement the session's
* <p>The caller must call {@link DrmSession#releaseReference} to decrement the session'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