forked from tpd94/CDRM-Extension
Update inject.js
Fix firstvalidlicense response.
This commit is contained in:
parent
deea01fd64
commit
033bf72151
@ -690,8 +690,7 @@ MediaKeySession.prototype.update = function(response) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Handle License Data
|
// Handle License Data
|
||||||
if (!base64Response.startsWith("CAUS") && !firstValidLicenseResponse && (interceptType === 'EME' || interceptType === 'LICENSE')) {
|
if (!base64Response.startsWith("CAUS") && (interceptType === 'EME' || interceptType === 'LICENSE')) {
|
||||||
firstValidLicenseResponse = true;
|
|
||||||
|
|
||||||
// 🔁 Call parseLicense, then getKeys from global remoteCDM
|
// 🔁 Call parseLicense, then getKeys from global remoteCDM
|
||||||
if (remoteCDM !== null && remoteCDM.session_id) {
|
if (remoteCDM !== null && remoteCDM.session_id) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user