I am working on uploads videos on YouTube using Zend Gdata YouTube API. It uploads well. I can easily fetch the videos on a page. But in this paging doesn't works. i am showing video records on the basis of a specific user records. It shows all records on one page. we have next and back links here. but on click they shows same records on each page.
I have used this: http://gdata.youtube.com/feeds/api/users/bbc/uploads/?start-index=1&max-results=10 But it shows only 10 results. Although I have uploaded more than 12 videos.
I have also used:
$youTubeService = new Zend_Gdata_YouTube();
$query = $youTubeService->newVideoQuery();
$query->setQuery($searchTerm);
$query->setStartIndex($startIndex);
$query->setMaxResults($maxResults);
$feed = $youTubeService->getUserUploads(NULL,$query);
Here $startIndex
gives the updated searchindex value for each click on next or previous. But it also giving me only 10 results. Whether $maxResults
have any value 3, 4 or 5.
here i want to apply pagination to access 5 videos first. then on click of net link next five results should display.
Please help if anyone have some idea about this.