Friday, October 5, 2012

[YouTube-API] Re: PHP - Obtaining Video ID from Live Event feed

This is happening to me too, I get title & description back, but nothing else. This is my URI:

$uri = sprintf('https://gdata.youtube.com/feeds/api/users/%1$s/live/events?v=2&inline=true', $userId); 

return parent::getFeed($uri, 'Zend_Gdata_YouTube_VideoFeed');

On Monday, September 17, 2012 2:28:10 PM UTC-5, Jeffrey Posnick wrote:
Hello Nick,

 Are you specifying the "inline=true" URL query parameter when requesting the feed?


Cheers,
-Jeff Posnick, YouTube API Team
YouTube Developer Relations is hiring! developers.google.com/jobs


On Wednesday, September 12, 2012 11:51:12 PM UTC-4, Nick F wrote:
I'm working on a project that involves obtaining a feed of Live/Recent events. When I use PHP and the example printVideoEntry function, I see that many items are not included in the feed like tags, thumbnails, etc. That's fine, but it also does not include the video ID using:

$videoEntry->getVideoId();


I've been trying to create a sort of hack that would allow me to get the video id somehow. Even if I got the player link, I could parse it, but nothing I've tried works.
echo $videoEntry->mediagroup->videoid->text;
echo $videoEntry->mediagroup->content->url;
echo $videoEntry->mediagroup->player->url;

I have spent the past hour or so analyzing the sample data at https://developers.google.com/youtube/2.0/developers_guide_protocol_retrieving_live_events and I've yet to find a workable solution.

Does anyone know? Thanks in advance if you can help me out.

--
Starting October 15, 2012, this group will stop accepting new posts. We recommend that developers start using Stack Overflow and the Issue Tracker for YouTube API support. More details about this change and relevant links can be found at http://apiblog.youtube.com/2012/09/the-youtube-api-on-stack-overflow.html
 
 

No comments:

Post a Comment