Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.
Comment | File | Size | Author |
---|---|---|---|
media_youtube-api_v2.patch | 1.59 KB | Anonymous (not verified) | |
Comments
Comment #1
aaron CreditAttribution: aaron commentedfixed, thanks!