Add allowfullscreen param to vimeo service. Default value is allowed.

This commit is contained in:
Jean-Baptiste Motto 2021-04-29 18:40:23 +02:00
parent e52df90a87
commit 8dd80450b2
1 changed files with 2 additions and 1 deletions

View File

@ -2889,6 +2889,7 @@ tarteaucitron.services.vimeo = {
frame_height = 'height=',
video_id = x.getAttribute("data-videoID") || x.getAttribute("videoID"),
video_allowfullscreen = x.getAttribute("data-allowfullscreen"),
video_autopause = x.getAttribute("data-autopause") || '',
video_autoplay = x.getAttribute("data-autoplay") || x.getAttribute("autoplay") || '',
video_background = x.getAttribute("data-background") || '',
@ -3030,7 +3031,7 @@ tarteaucitron.services.vimeo = {
video_qs = "";
}
video_frame = '<iframe title="' + frame_title + '" src="//player.vimeo.com/video/' + video_id + video_qs + '" ' + frame_width + frame_height + ' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
video_frame = '<iframe title="' + frame_title + '" src="//player.vimeo.com/video/' + video_id + video_qs + '" ' + frame_width + frame_height + (video_allowfullscreen == '0' ? '' : ' webkitallowfullscreen mozallowfullscreen allowfullscreen') + '></iframe>';
return video_frame;
});