Zend Framework 101: Zend_Gdata_YouTube
Summary
In this article I have shown you how to access and output a list of videos from YouTube using theZend_Gdata_YouTube class. I showed you how to embed each video or simply output one or more thumbnails of a video.
Additionally, I showed you how to perform more advanced queries using the
Zend_Gdata_Query class. We created a script that splits results up into multiple pages then display links to each page.
There are many other things you can do with this API, including retrieving different types of feeds or even uploading videos directly to YouTube.
Additionally, if you're going to use the code in this article, I recommend combining if with techniques covered in Zend Framework 101: Zend_Cache. Since the feed data won't change often, you should reduce the number of calls to the YouTube web service whenever possible as this will result in significant performance gains for your web application.
Further Reading
- http://framework.zend.com/manual/en/zend.gdata.youtube.html - Zend Framework manual entry for Zend_Gdata_YouTube.
Other Options
- Download a PDF version of this article
- Put your PHP knowledge to the test with our online and iPad/iPhone quizzes
- View or post comments for this article
- Browse similar articles by tag: PHP, YouTube, Zend Framework, Zend_Gdata, Zend_Gdata_YouTube
- Read related articles:
No comments:
Post a Comment