How to ensure YouTube API only returns videos that are playable on iPhone?

Posted by prendio2 on Stack Overflow See other posts from Stack Overflow or by prendio2
Published on 2010-04-08T15:30:14Z Indexed on 2010/04/08 15:33 UTC
Read the original article Hit count: 220

Filed under:
|

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.

© Stack Overflow or respective owner

Related posts about youtube-api

Related posts about iphone