I wanted to know the aspect ratio of the videos so I could alter the size of the player appropriately. Unfortunately, YouTube does not tell us the actual dimensions or the actual ratio. They only reveal whether something is "widescreen." And they only do this for version 2 of the data API.

This patch adds the v=2 parameter to the request and increments the MEDIA_YOUTUBE_DATA_VERSION.

CommentFileSizeAuthor
media_youtube-api_v2.patch1.59 KBAnonymous (not verified)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

aaron’s picture

Status: Needs review » Fixed

fixed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.