Add webkit and moz allowfullscreen compatibility for youtube and youtube playlist services.

This commit is contained in:
Jean-Baptiste Motto 2021-04-30 16:38:45 +02:00
parent fbcb657496
commit a43e2725f8
1 changed files with 2 additions and 2 deletions

View File

@ -3312,7 +3312,7 @@ tarteaucitron.services.youtube = {
} else {
frame_height += '"" ';
}
video_frame = '<iframe title="' + frame_title + '" type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '"' + (allowfullscreen == '0' ? '' : ' allowfullscreen') + '></iframe>';
video_frame = '<iframe title="' + frame_title + '" type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '"' + (allowfullscreen == '0' ? '' : ' webkitallowfullscreen mozallowfullscreen allowfullscreen') + '></iframe>';
return video_frame;
});
},
@ -3361,7 +3361,7 @@ tarteaucitron.services.youtubeplaylist = {
} else {
frame_height += '"" ';
}
video_frame = '<iframe title="' + frame_title + '" type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/videoseries?list=' + playlist_id + '&' + params + '"' + (allowfullscreen == '0' ? '' : ' allowfullscreen') + '></iframe>';
video_frame = '<iframe title="' + frame_title + '" type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/videoseries?list=' + playlist_id + '&' + params + '"' + (allowfullscreen == '0' ? '' : ' webkitallowfullscreen mozallowfullscreen allowfullscreen') + '></iframe>';
return video_frame;
});
},