views:

118

answers:

1

The Youtube API will return videos that can be played no problem within the chromeless player. It also returns videos that cannot be played, - "Embedding disabled by request".

I don't want to retrieve videos that cannot be played, is there a way to request only videos that can be embedded?

cheers

A: 

Yes, there is a parameter exactly for this purpose. In this Url

http://gdata.youtube.com/feeds/api/videos?q=connemara&orderby=published&max-results=10&v=2&format=5

the "format=5" parameter restricts the results to embeddable videos. See the 'Developer's Guide: Data API Protocol – API Query Parameters'.

Rafe Lavelle