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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yannickoo created an issue. See original summary.

Status: Needs review » Needs work
Sam152’s picture

Issue summary: View changes
Status: Needs work » Closed (works as designed)
FileSize
407.03 KB

I 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?

dshields’s picture

I'm wondering if maybe the original poster meant too small, not too slow..