
Download here: http://dev.cmsmadesimple.org/projects/apiyoutubefeed/
Data structure:
Code: Select all
n = integer
$videos [ n ] -> info -> id
$videos [ n ] -> info -> title
$videos [ n ] -> info -> description
$videos [ n ] -> info -> keywords
$videos [ n ] -> info -> views
$videos [ n ] -> info -> duration
$videos [ n ] -> info -> published
$videos [ n ] -> info -> updated
$videos [ n ] -> info -> rating
$videos [ n ] -> view -> media_content_url
$videos [ n ] -> view -> media_content_type
$videos [ n ] -> view -> pageurl
$videos [ n ] -> thumbnail_small -> width
$videos [ n ] -> thumbnail_small -> height
$videos [ n ] -> thumbnail_small -> url
$videos [ n ] -> thumbnail_large -> width
$videos [ n ] -> thumbnail_large -> height
$videos [ n ] -> thumbnail_large -> url
$videos [ n ] -> comments -> feedurl
$videos [ n ] -> comments -> count

Dates can optionally be formated using php strftime parameters. Cacheing max age can also be configured optionally.
The cache takes car that the server doesn't have to wait for the youtube server to reply each time a page is requested. Addiionally, only the fewest youtube user feeds will require to be reloaded more frequently than every 4 minutes (default). If you need a refresh before max age, clean cache via reg. admin panel. It also helps to deal with quota limitations.
For playing videos howver... you need to take of that on your own. The plug-in only provides data for further processing with smarty. But here is some info how to embed youtube with valid xhtml in the wiki.
So, with this plug-in, you can do stuff like:
- User profile with latest videos
- Product TV on Company Site ("Will it blend?") with the newest episodes
- Youtube Video-Casts in Site einbinden
The help contains a sample code snippet to print out all variables (as a little kick-start).
Let me know what you think.
Enjoy
Nils