Detecting Available Qualities of YouTube Videos

Posted by Langdon on Stack Overflow See other posts from Stack Overflow or by Langdon
Published on 2010-04-18T21:04:25Z Indexed on 2010/04/18 21:13 UTC
Read the original article Hit count: 237

Filed under:
|

I'm writing a Boxee app that makes use of YouTube videos and I want to be able to display the highest quality version available. I was looking through the YouTube API, but I can't seem to find a way to detect if 720p and/or 1080p versions of the video are available.

Does anyone know how to do this? I'm already using their Data API to collection information about the video, but there doesn't seem to be anything in the payload about different qualities consumable on the web: http://gdata.youtube.com/feeds/api/videos/NWHfY_lvKIQ

I could just hard code fmt=22 and let it default to a lesser quality version, but then I miss out on 1080p (fmt=387).

© Stack Overflow or respective owner

Related posts about youtube

Related posts about youtube-api