I am using Zend Framework to show photos from Picasa Web Albums. My questions is how to display videos if there is any in the album?
foreach ($albumFeed as $albumEntry) {
if ($albumEntry->getMediaGroup() != null) {
$mediaArray = $albumEntry->getMediaGroup()->getContent();
if (sizeof($mediaArray) > 1) {
foreach($mediaArray as $mediaEntry) {
if ($mediaEntry->getMedium() == 'video') {
$media = 'video';
$videoSrc = $mediaEntry->getUrl();
break;
}
}
}
}
}
The $videoSrc has the video link but how can I play the video?
I tried something like:
echo "<object width='400' height='255'\> <embed src='http://video.google.com/googleplayer.swf?videoUrl=$videoSrc' type='application/x-shockwave-flash' allowscriptaccess='always' width='410' height='255'></embed> </object>";
but it didn't work. Any idea?
Thank you