Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I just tried to show the YouTube thumbnail in a slider and then I noticed that the downloaded YouTube thumbnail is way to slow to use it in my slider so I thought about adjusting the method which gets the URI for the thumbnail.
Comment | File | Size | Author |
---|---|---|---|
#4 | Screen Shot 2016-09-21 at 12.50.46 PM.png | 407.03 KB | Sam152 |
#2 | video_embed_field-2802461-increase_youtube_thumbnail_quality-1.patch | 1.61 KB | yannickoo |
Comments
Comment #2
yannickooComment #4
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedI noticed that the downloaded YouTube thumbnail is way to slow to use it in my slider
Too slow? How does this code address the speed? If anything it looks like it could take longer?
In #2711323: YouTube videos have black bars. I created a table of all the different thumbnail types of a series of videos and arrived at the current solution (see attachment):
Long story short, maxresdefault and mqdefault are the only two without black bars and we prefer 'maxresdefault' wherever possible.
I think this is a "works as designed" for now, unless I'm missing something?
Comment #5
dshields CreditAttribution: dshields commentedI'm wondering if maybe the original poster meant too small, not too slow..