0
zend로 동영상 재생 목록을 표시하려하지만 재생 목록 정보를 잡은 후 미리보기 이미지 나 URL을 찾는데 무엇이 필요한지 잘 모르겠습니다. 썸네일Youtube API (zend framework)에서 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);
}