From ab2102a7306d567f052018a9bf773712c826af4e Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Sat, 21 Feb 2015 15:55:58 +0100 Subject: [PATCH] Add more options to video players --- tarteaucitron.services.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 89705ca..76f8cfe 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -130,7 +130,8 @@ tarteaucitron.services.dailymotion = { frame_width = 'width=', video_height = x.getAttribute("height"), frame_height = 'height=', - video_frame; + video_frame, + params = 'info=' + x.getAttribute("showinfo") + '&autoPlay=' + x.getAttribute("autoplay"); if (video_id === undefined) { return ""; @@ -145,7 +146,7 @@ tarteaucitron.services.dailymotion = { } else { frame_height += '"" '; } - video_frame = ''; + video_frame = ''; return video_frame; }); }, @@ -766,7 +767,8 @@ tarteaucitron.services.youtube = { frame_width = 'width=', video_height = x.getAttribute("height"), frame_height = 'height=', - video_frame; + video_frame, + params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay"); if (video_id === undefined) { return ""; @@ -781,7 +783,7 @@ tarteaucitron.services.youtube = { } else { frame_height += '"" '; } - video_frame = ''; + video_frame = ''; return video_frame; }); },