Getting Vimeo thumbnail images using php is unbelievably slow -
i'm using php code thumbnail images of vimeo videos.
while($row = $database->fetch_array($result)) { $url = $row["link"]; sscanf(parse_url($url, php_url_path), '/%d', $video_id); $hash = unserialize(file_get_contents("http://vimeo.com/api/v2/video/$video_id.php")); $image = $hash[0]['thumbnail_small']; echo "<img class='vimeo_video' video='$video_id' src=$image>"; }
it fetches images, takes @ least 30 seconds load page. vimeo's servers or code?
Comments
Post a Comment