Cincopa is the complete rich media kit for WordPress, Joomla, Blogger and many other CMS. It allows to integrate and add media to your website in seconds! Cincopa Plugins and modules have awesome skins, upload your media to their cloud servers and easily embed on your website. Cincopa solutions includes many videos players, slideshows, galleries, podcast, music players in many different shapes and sizes, in total over 40 skins.
Apart from the plugins and js widgets, Cincopa provides Media RSS 2.00, XSPF, JSON and CoolIris RSS feeds of your uploaded galleries. You can check the details of available feeds and their urls of the Feeds page.
These Cincopa Media Feeds can be integrated easily anywhere into your website provided you have the folder ID (fid) of the albums you have created using your plugin. To parse the Media RSS 2.00 feed in php using SimpleXML, you can use following code.
$oReturn = new stdClass();
$fid=’AgCAn_Zvs6Zl’;//sample fid
$url = ‘http://www.cincopa.com/media-platform/runtime/rss200.aspx?fid=’.$fid;
$xml = simplexml_load_file($url);
$namespaces = $xml->getNamespaces(true); // get namespaces
// iterate items and store in an array of objects
$items = array();
foreach ($xml->channel->item as $item) {
$tmp = new stdClass();
$tmp->title = trim((string) $item->title);
$tmp->description = trim((string) $item->description);
// now for the url in media:content
$tmp->thumbnail = trim((string)
$item->children($namespaces[‘media’])->thumbnail->attributes()->url);
$tmp->content = trim((string)
$item->children($namespaces[‘media’])->content->attributes()->url);
// add parsed data to the array
$oReturn->items[] = $tmp;
Hope that helps.