mirror of
https://github.com/samsonjs/media.git
synced 2026-03-30 10:15:48 +00:00
Assume text tracks in protected SmoothStreaming are not protected
Issue: #4838 PiperOrigin-RevId: 222805051
This commit is contained in:
parent
2cab83e6e4
commit
0bcce18976
1 changed files with 6 additions and 2 deletions
|
|
@ -378,8 +378,12 @@ public class SsManifestParser implements ParsingLoadable.Parser<SsManifest> {
|
|||
DrmInitData drmInitData = new DrmInitData(new SchemeData(protectionElement.uuid,
|
||||
MimeTypes.VIDEO_MP4, protectionElement.data));
|
||||
for (StreamElement streamElement : streamElementArray) {
|
||||
for (int i = 0; i < streamElement.formats.length; i++) {
|
||||
streamElement.formats[i] = streamElement.formats[i].copyWithDrmInitData(drmInitData);
|
||||
int type = streamElement.type;
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue