diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 7636722..8767d0f 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -4751,3 +4751,34 @@ tarteaucitron.services.marketomunchkin = { document.getElementsByTagName('head')[0].appendChild(s); } } +// Canal-U.tv +tarteaucitron.services.canalu = { + "key": "canalu", + "type": "video", + "name": "Canal-U.tv", + "uri": "https://www.canal-u.tv/utilisation-des-cookies/", + "needConsent": true, + "cookies": [], + "js": function () { + "use strict"; + tarteaucitron.fallback(['canalu_player'], function (x) { + var video_title = tarteaucitron.fixSelfXSS(x.getAttribute("videoTitle")), + frame_url = 'https://www.canal-u.tv/video/embed_code_plugin.1/' + video_title; + + return '
' + + '' + + '
'; + }); + }, + "fallback": function () { + "use strict"; + tarteaucitron.fallback(['canalu_player'], function (elem) { + return tarteaucitron.engage('canalu'); + }); + } +}; \ No newline at end of file