mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Parse SchemeData from urn:mpeg:dash:mp4protection:2011 element
Issue: #3138 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=166849631
This commit is contained in:
parent
aafdd2267a
commit
b2c245281a
1 changed files with 10 additions and 0 deletions
|
|
@ -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")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue