function applyConsent(hasConsent) { // If require isn't available, try again in a moment. if (typeof require === 'undefined') { return setTimeout(function() { applyConsent(hasConsent); }, 10); } require.config({ paths: { CerosSDK: "//sdk.ceros.com/standalone-player-sdk-v5.min" } }); require(['CerosSDK'], function(CerosSDK) { CerosSDK.findExperience() .done(function(experience) { experience.setUserConsentForAnalytics(hasConsent); }) .fail(function(error) { console.error(error); }); }); } // Run it once to kick off the SDK loading applyConsent(false); /** * OneTrust-specific code * Function that runs any time there is a change to consent via OneTrust */ function OptanonWrapper() { applyConsent(OnetrustActiveGroups.indexOf('C0003') !== -1); } DIE GESTALTUNG DER ZUKUNFT