Wednesday, March 21, 2012

[YouTube-API] Zend Youtube API's $videoEntry->getVideoId() doesn't return the video ID

All other functions work as expected. My code:

function getAndPrintUserUploads($videoEntry) {
$videoThumbnails = $videoEntry->getVideoThumbnails();
return 'Video ID' . $videoEntry->getVideoId() . '<br/><img
alt="' . $videoEntry->getVideoTitle() . '" src="' . $videoThumbnails[0]
['url'] . '" />';
}
The image and title are correct, but where I expect the Video ID to be
vxZwKFGX26w, the above code returns
PLLlFRqv2uzNiMcnkovaXkq89nUwHY9D8u.

How do I get the video ID vxZwKFGX26w out of Zend, instead of this too-
long, not-right string?

--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.

No comments:

Post a Comment