Frage

Ich versuche Picassa Web-Album unter Verwendung Picassa Web-Alben zu belichten.

Beispiel erstellt mit nur 2 Bildern Wand Nach den 2 Album Haupt Fotos darstellen:

<object id="o" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  width="600" height="450">
<param name="movie" value="http://apps.cooliris.com/embed/cooliris.swf" />
<param name="allowFullScreen" value="true" />
<param name="allowScriptAccess" value="always" />
<embed type="application/x-shockwave-flash"
  src="http://apps.cooliris.com/embed/cooliris.swf"
  flashvars="feed=api://picasaweb.google.com/?user=davidinjp"
  width="600" 
  height="450"
  allowFullScreen="true"
  allowScriptAccess="always">
</embed>
</object>

Wie ist es möglich, alle Bilder aus allen Alben zeigen? Scheint, wie Cooliris dies nicht unterstützt, Medien RSS mit Cross-Domain-Fragen ergeben:

<object id="o" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  width="600" height="450">
<param name="movie" value="http://apps.cooliris.com/embed/cooliris.swf" />
<param name="allowFullScreen" value="true" />
<param name="allowScriptAccess" value="always" />
<embed type="application/x-shockwave-flash"
  src="http://apps.cooliris.com/embed/cooliris.swf"
  flashvars="feed=http://picasaweb.google.com/data/feed/base/user/davidinjp?alt=rss&kind=photo&hl=en_GB&access=public"
  width="600" 
  height="450"
  allowFullScreen="true"
  allowScriptAccess="always">
</embed>
</object>

Coolris Referenz: http://www.cooliris.com/developer/reference/media-site -apis /


@jeffamaphone Danke, das ist das, was ich getan habe. Ich habe erstellt einfache PHP, dass Spiegel auf meinem Host-Feed:

<?php
$content= file_get_contents('http://picasaweb.google.com/data/feed/base/user/USERNAME?alt=rss&kind=photo&hl=en_GB&access=public');

echo $content;
?>

hinzugefügt crossdomain.xml. Spitz Feed lokale PHP-Spiegelung Skript.

War es hilfreich?

Lösung

Unfortunately what you want to do doesn't have very good support in the Cooliris embed wall. What is supported (for Picasa) is:

  • Get photos of user (grid of albums displayed)
  • Get photos of user from a specific album
  • Get photos matching a search term

The good news is we have tentatively scheduled these improvements to Picasa support in an upcoming release (though you know how things can change in Software development).

In the mean time, if you have personal hosting available, the dirty work-around is to make a duplicate of the feed, setup crossdomain.xml to work with *.cooliris.com and pull it from there. Not really optimal, but it will work until we add the support you need.

Andere Tipps

And to get the full out of that code, you should add a &max-results=1000 after the access=public. It took me 2 hours to get that :D

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top