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
f55083ab
authored
Oct 31, 2019
by
olly
Committed by
Oliver Woodman
Nov 05, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Minor DRM documentation tweaks
PiperOrigin-RevId: 277729887
parent
f554dc4e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
15 deletions
library/core/src/main/java/com/google/android/exoplayer2/drm/DefaultDrmSessionManager.java
library/core/src/main/java/com/google/android/exoplayer2/drm/FrameworkMediaDrm.java
library/core/src/main/java/com/google/android/exoplayer2/drm/DefaultDrmSessionManager.java
View file @
f55083ab
...
@@ -71,10 +71,9 @@ public class DefaultDrmSessionManager<T extends ExoMediaCrypto>
...
@@ -71,10 +71,9 @@ public class DefaultDrmSessionManager<T extends ExoMediaCrypto>
* <li>{@link #setUuidAndExoMediaDrmProvider UUID}: {@link C#WIDEVINE_UUID}.
* <li>{@link #setUuidAndExoMediaDrmProvider UUID}: {@link C#WIDEVINE_UUID}.
* <li>{@link #setUuidAndExoMediaDrmProvider ExoMediaDrm.Provider}: {@link
* <li>{@link #setUuidAndExoMediaDrmProvider ExoMediaDrm.Provider}: {@link
* FrameworkMediaDrm#DEFAULT_PROVIDER}.
* FrameworkMediaDrm#DEFAULT_PROVIDER}.
* <li>{@link #setMultiSession multiSession}: Not allowed by default.
* <li>{@link #setMultiSession multiSession}: {@code false}.
* <li>{@link #setPreferSecureDecoders preferSecureDecoders}: Not allowed by default.
* <li>{@link #setPreferSecureDecoders preferSecureDecoders}: {@code false}.
* <li>{@link #setPlayClearSamplesWithoutKeys playClearSamplesWithoutKeys}: Not allowed by
* <li>{@link #setPlayClearSamplesWithoutKeys playClearSamplesWithoutKeys}: {@code false}.
* default.
* <li>{@link #setLoadErrorHandlingPolicy LoadErrorHandlingPolicy}: {@link
* <li>{@link #setLoadErrorHandlingPolicy LoadErrorHandlingPolicy}: {@link
* DefaultLoadErrorHandlingPolicy}.
* DefaultLoadErrorHandlingPolicy}.
* </ul>
* </ul>
...
@@ -84,9 +83,6 @@ public class DefaultDrmSessionManager<T extends ExoMediaCrypto>
...
@@ -84,9 +83,6 @@ public class DefaultDrmSessionManager<T extends ExoMediaCrypto>
keyRequestParameters
=
new
HashMap
<>();
keyRequestParameters
=
new
HashMap
<>();
uuid
=
C
.
WIDEVINE_UUID
;
uuid
=
C
.
WIDEVINE_UUID
;
exoMediaDrmProvider
=
(
ExoMediaDrm
.
Provider
)
FrameworkMediaDrm
.
DEFAULT_PROVIDER
;
exoMediaDrmProvider
=
(
ExoMediaDrm
.
Provider
)
FrameworkMediaDrm
.
DEFAULT_PROVIDER
;
multiSession
=
false
;
preferSecureDecoders
=
false
;
flags
=
0
;
loadErrorHandlingPolicy
=
new
DefaultLoadErrorHandlingPolicy
();
loadErrorHandlingPolicy
=
new
DefaultLoadErrorHandlingPolicy
();
}
}
...
@@ -145,13 +141,11 @@ public class DefaultDrmSessionManager<T extends ExoMediaCrypto>
...
@@ -145,13 +141,11 @@ public class DefaultDrmSessionManager<T extends ExoMediaCrypto>
}
}
/**
/**
* Sets whether clear samples
should be played when keys are not available. Keys are considered
* Sets whether clear samples
within protected content should be played when keys for the
*
unavailable when the load request is taking place, or when the key request has fail
ed.
*
encrypted part of the content have yet to be load
ed.
*
*
* <p>This option does not affect placeholder sessions.
* @param playClearSamplesWithoutKeys Whether clear samples within protected content should be
*
* played when keys for the encrypted part of the content have yet to be loaded.
* @param playClearSamplesWithoutKeys Whether clear samples should be played when keys are not
* available.
* @return This builder.
* @return This builder.
*/
*/
public
Builder
setPlayClearSamplesWithoutKeys
(
boolean
playClearSamplesWithoutKeys
)
{
public
Builder
setPlayClearSamplesWithoutKeys
(
boolean
playClearSamplesWithoutKeys
)
{
...
@@ -489,7 +483,7 @@ public class DefaultDrmSessionManager<T extends ExoMediaCrypto>
...
@@ -489,7 +483,7 @@ public class DefaultDrmSessionManager<T extends ExoMediaCrypto>
assertExpectedPlaybackLooper
(
playbackLooper
);
assertExpectedPlaybackLooper
(
playbackLooper
);
maybeCreateMediaDrmHandler
(
playbackLooper
);
maybeCreateMediaDrmHandler
(
playbackLooper
);
List
<
SchemeData
>
schemeDatas
=
null
;
@Nullable
List
<
SchemeData
>
schemeDatas
=
null
;
if
(
offlineLicenseKeySetId
==
null
)
{
if
(
offlineLicenseKeySetId
==
null
)
{
schemeDatas
=
getSchemeDatas
(
drmInitData
,
uuid
,
false
);
schemeDatas
=
getSchemeDatas
(
drmInitData
,
uuid
,
false
);
if
(
schemeDatas
.
isEmpty
())
{
if
(
schemeDatas
.
isEmpty
())
{
...
...
library/core/src/main/java/com/google/android/exoplayer2/drm/FrameworkMediaDrm.java
View file @
f55083ab
...
@@ -78,7 +78,7 @@ public final class FrameworkMediaDrm implements ExoMediaDrm<FrameworkMediaCrypto
...
@@ -78,7 +78,7 @@ public final class FrameworkMediaDrm implements ExoMediaDrm<FrameworkMediaCrypto
/**
/**
* Creates an instance with an {@link #acquire() acquired reference} for the specified scheme
* Creates an instance with an {@link #acquire() acquired reference} for the specified scheme
* UUID.
* UUID.
{@link #release()} must be called when the instance is no longer required.
*
*
* @param uuid The scheme uuid.
* @param uuid The scheme uuid.
* @return The created instance.
* @return The created instance.
...
...
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