Sunday, February 26, 2012

[YouTube-API] embedding my playlist

below is my code creates a playlist and now i want to embed the
playlist to view. in the iframe src what is it looking for there?

$playlistListFeed = $yt->getPlaylistListFeed('wearitliveit');

foreach ($playlistListFeed as $playlistEntry) {

echo $playlistEntry->title->text . "\n<br />";

echo $playlistEntry->description->text . "\n<br />";

//echo $playlistEntry->getPlaylistVideoFeedUrl() . "\n\n\n</
br />";

if ( $playlistEntry->title->text == "MyTri" ) {

$postUrl = $playlistEntry->getPlaylistVideoFeedUrl();

echo "$postUrl</br />";

echo'

<iframe width="560" height="349" src="what is the source it is
looking for" frameborder="0" allowfullscreen></iframe>

';

}

}

--
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