我试图用zend显示一个视频播放列表,但是在捕捉到播放列表信息之后,我不知道我需要做什么才能找到缩略图或缩略图的url。
这是我的代码:
require_once 'Zend/Loader.php'; // the Zend dir must be in your include_path
Zend_Loader::loadClass('Zend_Gdata_YouTube');
$yt = new Zend_Gdata_YouTube();
$playlistListFeed = $yt->getPlaylistListFeed('admaltais');
//step 1: show the playlist name and his URL
foreach ($playlistListFeed as $playlistEntry)
{
echo $playlistEntry->title->text . "</br></br>";
echo $playlistEntry->getPlaylistVideoFeedUrl() . "</br></br>";
}
//step 2: parse the playlist
$feedUrl = $playlistEntry->getPlaylistVideoFeedUrl();
$playlistVideoFeed = $yt->getPlaylistVideoFeed('http://gdata.youtube.com/feeds/api/playlists/B15D7FD35D3814A5');
foreach ($playlistVideoFeed as $playlistVideoFeedEntry)
{
echo $playlistVideoFeedEntry->title->text . "</br></br>";
//here i want to retrieve the infos
//var_dump($playlistVideoFeedEntry);
}