xhr.onreadystatechange = function()

in 2020/lib/manual/wv_license_request.js [136:158]


      xhr.onreadystatechange = function() {
        if (xhr.readyState == 4) {
          try {
            if (xhr.status != 200) {
              log('failed, HTTP status ' + xhr.status);
            } else {
              console.log(xhr.responseText);
              parsedLicenseRequest = JSON.parse(xhr.responseText);
              client_info = parsedLicenseRequest.client_info;
              for (var i = 0; i < client_info.length; i++) {
                key = client_info[i].name;
                value = client_info[i].value;
                license[key] = value;
              }
            }
            if(parsedLicenseRequest.client_capabilities) {
              license['oem_crypto_api_version'] = parsedLicenseRequest.client_capabilities.oem_crypto_api_version || 'Error: OEMCrypto version missing!';
              license['max_hdcp_version'] = parsedLicenseRequest.client_capabilities.max_hdcp_version || 'Error: Max HDCP version missing!';
            }
            renderLicense(license);
          } catch (e) {}
        }
      };