From acb449cad91f6230dec6accab74dac2507b4bdf9 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Thu, 22 Oct 2020 10:11:50 +0200 Subject: [PATCH] Add the mute option on Youtube service --- tarteaucitron.services.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 3ee8c55..ad8d2a0 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -2457,7 +2457,7 @@ tarteaucitron.services.youtube = { video_height = x.getAttribute("height"), frame_height = 'height=', video_frame, - params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay"); + params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay") + '&mute=' + x.getAttribute("mute"); if (video_id === undefined) { return ""; @@ -2504,7 +2504,7 @@ tarteaucitron.services.youtubeplaylist = { video_height = x.getAttribute("height"), frame_height = 'height=', video_frame, - params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay"); + params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay") + '&mute=' + x.getAttribute("mute"); if (playlist_id === undefined) { return "";