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
3e150b54
authored
Nov 26, 2018
by
olly
Committed by
Andrew Lewis
Nov 26, 2018
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Assume text tracks in protected SmoothStreaming are not protected
Issue: #4838 PiperOrigin-RevId: 222805051
parent
d6b6600a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
library/smoothstreaming/src/main/java/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifestParser.java
library/smoothstreaming/src/main/java/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifestParser.java
View file @
3e150b54
...
@@ -378,8 +378,12 @@ public class SsManifestParser implements ParsingLoadable.Parser<SsManifest> {
...
@@ -378,8 +378,12 @@ public class SsManifestParser implements ParsingLoadable.Parser<SsManifest> {
DrmInitData
drmInitData
=
new
DrmInitData
(
new
SchemeData
(
protectionElement
.
uuid
,
DrmInitData
drmInitData
=
new
DrmInitData
(
new
SchemeData
(
protectionElement
.
uuid
,
MimeTypes
.
VIDEO_MP4
,
protectionElement
.
data
));
MimeTypes
.
VIDEO_MP4
,
protectionElement
.
data
));
for
(
StreamElement
streamElement
:
streamElementArray
)
{
for
(
StreamElement
streamElement
:
streamElementArray
)
{
for
(
int
i
=
0
;
i
<
streamElement
.
formats
.
length
;
i
++)
{
int
type
=
streamElement
.
type
;
streamElement
.
formats
[
i
]
=
streamElement
.
formats
[
i
].
copyWithDrmInitData
(
drmInitData
);
if
(
type
==
C
.
TRACK_TYPE_VIDEO
||
type
==
C
.
TRACK_TYPE_AUDIO
)
{
Format
[]
formats
=
streamElement
.
formats
;
for
(
int
i
=
0
;
i
<
formats
.
length
;
i
++)
{
formats
[
i
]
=
formats
[
i
].
copyWithDrmInitData
(
drmInitData
);
}
}
}
}
}
}
}
...
...
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