Commit b2c24528 by olly Committed by Oliver Woodman

Parse SchemeData from urn:mpeg:dash:mp4protection:2011 element

Issue: #3138

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=166849631
parent aafdd226
...@@ -347,6 +347,16 @@ public class DashManifestParser extends DefaultHandler ...@@ -347,6 +347,16 @@ public class DashManifestParser extends DefaultHandler
byte[] data = null; byte[] data = null;
UUID uuid = null; UUID uuid = null;
boolean requiresSecureDecoder = false; boolean requiresSecureDecoder = false;
if ("urn:mpeg:dash:mp4protection:2011".equals(schemeIdUri)) {
String defaultKid = xpp.getAttributeValue(null, "cenc:default_KID");
if (defaultKid != null) {
UUID keyId = UUID.fromString(defaultKid);
data = PsshAtomUtil.buildPsshAtom(C.COMMON_PSSH_UUID, new UUID[] {keyId}, null);
uuid = C.COMMON_PSSH_UUID;
}
}
do { do {
xpp.next(); xpp.next();
if (data == null && XmlPullParserUtil.isStartTag(xpp, "cenc:pssh") if (data == null && XmlPullParserUtil.isStartTag(xpp, "cenc:pssh")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment