嗨可以有人幫助我以正確的方式獲得default.jpg圖像來自我拉入的頻道的每個視頻?Youtube API:顯示每個視頻的縮略圖...?
<?php
$url = 'http://gdata.youtube.com/feeds/api/users/utahblaze/uploads?orderby=updated&max-results=8';
$xml = simplexml_load_file($url);
foreach ($xml->entry as $entry) :
$kids = $entry->children('http://search.yahoo.com/mrss/');
$attributes = $kids->group->content[0]->attributes();
$flv = $attributes['url'];
$attributes = $kids->group->player->attributes();
$link = $attributes['url'];
?>
<a href="<?=$link?>">test</a?
<?php endforeach; ?>
什麼** default.jpg **,480x360縮略圖圖像? – salathe 2012-02-15 21:52:21
@salathe不,我認爲它比那小,可能像100x80或東西 – acctman 2012-02-16 15:20:59