I have an application in which I have manually uploaded videos using Youtube Data API.
It is working fine.
But now I want to display thumbnails of video uploaded by my users in my application.
I have tried a lot for this with getVideoThumbnails()
, but I can not get videoEntry
object of recently uploaded video.
This is my code :
$yt = new Zend_Gdata_YouTube($httpClient,$applicationkey,null,$developerkey);
$videoEntry = $yt->getVideoEntry('the0KZLEacs');
$videoThumbnails = $videoEntry->getVideoThumbnails();
foreach($videoThumbnails as $videoThumbnail) {
echo $videoThumbnail['time'] . ' - ' . $videoThumbnail['url'];
echo ' height=' . $videoThumbnail['height'];
echo ' width=' . $videoThumbnail['width'] . "\n";
}
Here, the0KZLEacs is a id of uploaded video.
Have any idea?
Thanks in advance...