How to ensure YouTube API only returns videos that are playable on iPhone?
- by prendio2
I'm building some YouTube search functionality into an iPhone app and want to ensure that I only receive results that will be playable on the device. According to the Searching for videos section in the API reference doc this seems to be relatively straightforward:
The format parameter specifies that videos must be available in a particular video format. Your request can specify any of the following formats:
I've currently set my project to only return videos with "format=1" which will limit to:
RTSP streaming URL for mobile video playback. H.263 video (up to 176x144) and AMR audio.
I'd love if someone could confirm that this is in fact the appropriate setting or let me know if I'm missing something.
Cheers.