Update inject.js

Fix firstvalidlicense response.
This commit is contained in:
TPD94 2025-06-01 12:56:58 -04:00
parent deea01fd64
commit 033bf72151

View File

@ -690,8 +690,7 @@ MediaKeySession.prototype.update = function(response) {
}
// Handle License Data
if (!base64Response.startsWith("CAUS") && !firstValidLicenseResponse && (interceptType === 'EME' || interceptType === 'LICENSE')) {
firstValidLicenseResponse = true;
if (!base64Response.startsWith("CAUS") && (interceptType === 'EME' || interceptType === 'LICENSE')) {
// 🔁 Call parseLicense, then getKeys from global remoteCDM
if (remoteCDM !== null && remoteCDM.session_id) {