I am trying to fetch videos from the YouTube server based on my keywords, but when try to change the version 1 to version 2, it's not paginating.
I got following output from the YouTube server.
Search results
items found. Showing items to -1:
The following code I used to fetch the video from the YouTube server:
$feedURL = "http://gdata.youtube.com/feeds/api/videos?q={$vq}&v=2";
$sxml = simplexml_load_file($feedURL);
The following code for the pagination:
require_once 'Pager/Pager.php';
$params = array(
'mode' => 'Jumping',
'perPage' => $i,
'delta' => 5,
'totalItems' => $total,
);
$pager = & Pager::factory($params);
$links = $pager->getLinks();
Please anybody help me to resolve this issue.