嗨可以有人帮助我以正确的方式获得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