diff --git a/pyplayready/bcert.py b/pyplayready/bcert.py index 747e72d..5248706 100644 --- a/pyplayready/bcert.py +++ b/pyplayready/bcert.py @@ -237,9 +237,10 @@ class Certificate(_BCertStructs): ) feature = Container( - feature_count=1, + feature_count=2, features=ListContainer([ - 4 + 4, # SECURE_CLOCK + 13 # SUPPORTS_PR3_FEATURES ]) ) feature_attribute = Container( diff --git a/pyplayready/cdm.py b/pyplayready/cdm.py index 61defea..78bf9c4 100644 --- a/pyplayready/cdm.py +++ b/pyplayready/cdm.py @@ -29,13 +29,15 @@ class Cdm: certificate_chain: CertificateChain, encryption_key: ECCKey, signing_key: ECCKey, - client_version: str = "10.0.16384.10011" + client_version: str = "10.0.16384.10011", + la_version: int = 1 ): self.security_level = security_level self.certificate_chain = certificate_chain self.encryption_key = encryption_key self.signing_key = signing_key self.client_version = client_version + self.la_version = la_version self.curve = Curve.get_curve("secp256r1") self.elgamal = ElGamal(self.curve) @@ -92,7 +94,7 @@ class Cdm: ) -> str: return ( '' - '1' + f'{self.la_version}' f'{content_header}' '' f'{self.client_version}'