Add webkit and moz allowfullscreen compatibility for youtube and youtube playlist services.
This commit is contained in:
parent
fbcb657496
commit
a43e2725f8
|
|
@ -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;
|
||||
});
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue