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
8017118e
authored
Mar 17, 2020
by
Matthias Tamegger
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Extend FrameworkMediaDrm to support PSSHv1 on Amazon FireTV Gen1/Gen2/Stick Gen1/Stick Gen2
parent
7b82a3c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 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 @
8017118e
...
...
@@ -358,13 +358,15 @@ public final class FrameworkMediaDrm implements ExoMediaDrm<FrameworkMediaCrypto
}
// Prior to L the Widevine CDM required data to be extracted from the PSSH atom. Some Amazon
// devices also required data to be extracted from the PSSH atom for PlayReady.
// devices also required data to be extracted from the PSSH atom for PlayReady and Widevine
// with PSSHv1 boxes.
if
((
Util
.
SDK_INT
<
21
&&
C
.
WIDEVINE_UUID
.
equals
(
uuid
))
||
(
C
.
PLAYREADY_UUID
.
equals
(
uuid
)
||
(
(
C
.
PLAYREADY_UUID
.
equals
(
uuid
)
||
C
.
WIDEVINE_UUID
.
equals
(
uuid
)
)
&&
"Amazon"
.
equals
(
Util
.
MANUFACTURER
)
&&
(
"AFTB"
.
equals
(
Util
.
MODEL
)
// Fire TV Gen 1
||
"AFTS"
.
equals
(
Util
.
MODEL
)
// Fire TV Gen 2
||
"AFTM"
.
equals
(
Util
.
MODEL
))))
{
// Fire TV Stick Gen 1
||
"AFTM"
.
equals
(
Util
.
MODEL
)
// Fire TV Stick Gen 1
||
"AFTT"
.
equals
(
Util
.
MODEL
))))
{
// Fire TV Stick Gen 2
byte
[]
psshData
=
PsshAtomUtil
.
parseSchemeSpecificData
(
initData
,
uuid
);
if
(
psshData
!=
null
)
{
// Extraction succeeded, so return the extracted data.
...
...
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