mirror of
https://github.com/androidx/media.git
synced 2025-05-07 23:50:44 +08:00
Assume text tracks in protected SmoothStreaming are not protected
Issue: #4838 PiperOrigin-RevId: 222805051
This commit is contained in:
parent
d6b6600a28
commit
3e150b54f4
@ -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…
x
Reference in New Issue
Block a user