forked from kenzuya/unshackle
fix(cdm): adjust scheme value based on security level
- Change scheme to "widevine" if security level is 3, otherwise use "L1" - Apply this logic when setting init_data and license response schemes - Ensure correct CDM scheme usage according to security level context
This commit is contained in:
@@ -71,7 +71,7 @@ class DecryptLabsRemoteCDM(RemoteCdm):
|
||||
{
|
||||
"init_data": self.pssh.dumps(),
|
||||
"service_certificate": self.req_session.signed_device_certificate,
|
||||
"scheme": "widevine",
|
||||
"scheme": "widevine" if self.security_level == 3 else "L1", # Using L1 CDM,
|
||||
"service": self.service_name,
|
||||
},
|
||||
)
|
||||
@@ -103,7 +103,7 @@ class DecryptLabsRemoteCDM(RemoteCdm):
|
||||
"init_data": self.pssh.dumps(),
|
||||
"license_request": self.license_request,
|
||||
"license_response": license_message,
|
||||
"scheme": "widevine",
|
||||
"scheme": "widevine" if self.security_level == 3 else "L1",
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user