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
af9ce21e
authored
Oct 01, 2019
by
aquilescanta
Committed by
Oliver Woodman
Oct 02, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Log failures when instantiating Framework MediaDrms
PiperOrigin-RevId: 272166041
parent
c9029479
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
library/core/src/main/java/com/google/android/exoplayer2/drm/FrameworkMediaDrm.java
library/core/src/main/java/com/google/android/exoplayer2/drm/FrameworkMediaDrm.java
View file @
af9ce21e
...
@@ -48,6 +48,8 @@ import java.util.UUID;
...
@@ -48,6 +48,8 @@ import java.util.UUID;
@TargetApi
(
23
)
@TargetApi
(
23
)
public
final
class
FrameworkMediaDrm
implements
ExoMediaDrm
<
FrameworkMediaCrypto
>
{
public
final
class
FrameworkMediaDrm
implements
ExoMediaDrm
<
FrameworkMediaCrypto
>
{
private
static
final
String
TAG
=
"FrameworkMediaDrm"
;
/**
/**
* {@link ExoMediaDrm.Provider} that returns a new {@link FrameworkMediaDrm} for the requested
* {@link ExoMediaDrm.Provider} that returns a new {@link FrameworkMediaDrm} for the requested
* UUID. Returns a {@link DummyExoMediaDrm} if the protection scheme identified by the given UUID
* UUID. Returns a {@link DummyExoMediaDrm} if the protection scheme identified by the given UUID
...
@@ -60,6 +62,7 @@ public final class FrameworkMediaDrm implements ExoMediaDrm<FrameworkMediaCrypto
...
@@ -60,6 +62,7 @@ public final class FrameworkMediaDrm implements ExoMediaDrm<FrameworkMediaCrypto
try
{
try
{
return
newInstance
(
uuid
);
return
newInstance
(
uuid
);
}
catch
(
UnsupportedDrmException
e
)
{
}
catch
(
UnsupportedDrmException
e
)
{
Log
.
e
(
TAG
,
"Failed to instantiate a FrameworkMediaDrm for uuid: "
+
uuid
+
"."
);
return
new
DummyExoMediaDrm
<>();
return
new
DummyExoMediaDrm
<>();
}
}
};
};
...
@@ -68,7 +71,6 @@ public final class FrameworkMediaDrm implements ExoMediaDrm<FrameworkMediaCrypto
...
@@ -68,7 +71,6 @@ public final class FrameworkMediaDrm implements ExoMediaDrm<FrameworkMediaCrypto
private
static
final
String
MOCK_LA_URL_VALUE
=
"https://x"
;
private
static
final
String
MOCK_LA_URL_VALUE
=
"https://x"
;
private
static
final
String
MOCK_LA_URL
=
"<LA_URL>"
+
MOCK_LA_URL_VALUE
+
"</LA_URL>"
;
private
static
final
String
MOCK_LA_URL
=
"<LA_URL>"
+
MOCK_LA_URL_VALUE
+
"</LA_URL>"
;
private
static
final
int
UTF_16_BYTES_PER_CHARACTER
=
2
;
private
static
final
int
UTF_16_BYTES_PER_CHARACTER
=
2
;
private
static
final
String
TAG
=
"FrameworkMediaDrm"
;
private
final
UUID
uuid
;
private
final
UUID
uuid
;
private
final
MediaDrm
mediaDrm
;
private
final
MediaDrm
mediaDrm
;
...
...
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