From 922930e750fe28afb243034073e48847a4c9f563 Mon Sep 17 00:00:00 2001 From: Chancellier Pierre-Jean Date: Thu, 16 Sep 2021 13:54:23 +0200 Subject: [PATCH] =?UTF-8?q?add=20a=20service=20:=20WebTV=20Normandie=20Uni?= =?UTF-8?q?versit=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tarteaucitron.services.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 74d4b9b..e301a9a 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -4808,6 +4808,7 @@ tarteaucitron.services.affilae = { } }; +// Canal-U.tv tarteaucitron.services.canalu = { "key": "canalu", "type": "video", @@ -4838,3 +4839,29 @@ tarteaucitron.services.canalu = { }); } }; + +// WebTV Normandie Université +tarteaucitron.services.webtvnu = { + "key": "webtvnu", + "type": "video", + "name": "WebTV Normandie Université", + "uri": "https://docs.google.com/document/d/1tpVclj4QBoAq1meSZgYrpNECwp7dbmb_IhICY3sTl9c/edit", + "needConsent": true, + "cookies": [], + "js": function () { + "use strict"; + tarteaucitron.fallback(['webtvnu_player'], function (x) { + var frame_url = 'https://webtv.normandie-univ.fr/permalink/' + x.getAttribute("videoID") + '/iframe/', + width = x.getAttribute("width"), + height = x.getAttribute("height"); + + return ''; + }); + }, + "fallback": function () { + "use strict"; + tarteaucitron.fallback(['webtvnu_player'], function (elem) { + return tarteaucitron.engage('webtvnu'); + }); + } +};