306 lines
11 KiB
HTML
306 lines
11 KiB
HTML
<!DOCTYPE html>
|
|
<!--
|
|
| Generated by Apache Maven Doxia at 2016-04-24
|
|
| Rendered using Apache Maven Fluido Skin 1.3.0
|
|
-->
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta name="author" content="mkurz" />
|
|
<meta name="Date-Creation-yyyymmdd" content="20111018" />
|
|
<meta name="Date-Revision-yyyymmdd" content="20160424" />
|
|
<meta http-equiv="Content-Language" content="en" />
|
|
<title>ROME - MediaRSS</title>
|
|
<link rel="stylesheet" href="../css/apache-maven-fluido-1.3.0.min.css" />
|
|
<link rel="stylesheet" href="../css/site.css" />
|
|
<link rel="stylesheet" href="../css/print.css" media="print" />
|
|
|
|
|
|
<script type="text/javascript" src="../js/apache-maven-fluido-1.3.0.min.js"></script>
|
|
|
|
|
|
</head>
|
|
<body class="topBarDisabled">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a href="http://github.com/rometools/rome">
|
|
<img style="position: absolute; top: 0; right: 0; border: 0; z-index: 10000;"
|
|
src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"
|
|
alt="Fork me on GitHub">
|
|
</a>
|
|
|
|
|
|
|
|
|
|
<div class="container-fluid">
|
|
<div id="banner">
|
|
<div class="pull-left">
|
|
<a href="../index.html" id="bannerLeft">
|
|
<img src="../images/romelogo.png" alt="ROME"/>
|
|
</a>
|
|
</div>
|
|
<div class="pull-right"> </div>
|
|
<div class="clear"><hr/></div>
|
|
</div>
|
|
|
|
<div id="breadcrumbs">
|
|
<ul class="breadcrumb">
|
|
|
|
|
|
|
|
|
|
|
|
<li id="publishDate" class="pull-right">Last Published: 2016-04-24</li> <li class="divider pull-right">|</li>
|
|
<li id="projectVersion" class="pull-right">Version: 1.7.0-SNAPSHOT</li>
|
|
|
|
</ul>
|
|
</div>
|
|
|
|
|
|
<div class="row-fluid">
|
|
<div id="leftColumn" class="span3">
|
|
<div class="well sidebar-nav">
|
|
|
|
|
|
<ul class="nav nav-list">
|
|
<li class="nav-header">Rome</li>
|
|
|
|
<li>
|
|
|
|
<a href="../index.html" title="Overview">
|
|
<i class="none"></i>
|
|
Overview</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="../HowRomeWorks/index.html" title="How Rome Works">
|
|
<i class="icon-chevron-right"></i>
|
|
How Rome Works</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="../RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/index.html" title="Tutorials And Articles">
|
|
<i class="none"></i>
|
|
Tutorials And Articles</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="../ROMEReleases/index.html" title="Releases">
|
|
<i class="icon-chevron-right"></i>
|
|
Releases</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="../ROMEDevelopmentProposals/index.html" title="ROME Development Proposals">
|
|
<i class="none"></i>
|
|
ROME Development Proposals</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="../Modules/index.html" title="Modules">
|
|
<i class="icon-chevron-down"></i>
|
|
Modules</a>
|
|
<ul class="nav nav-list">
|
|
|
|
<li>
|
|
|
|
<a href="../Modules/ITunesPodcasting.html" title="iTunes Podcasting">
|
|
<i class="none"></i>
|
|
iTunes Podcasting</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="../Modules/GeoRSS.html" title="GeoRSS.html">
|
|
<i class="none"></i>
|
|
GeoRSS.html</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="../Modules/Slash.html" title="Slash">
|
|
<i class="none"></i>
|
|
Slash</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="../Modules/GoogleBase.html" title="Google Base">
|
|
<i class="none"></i>
|
|
Google Base</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="../Modules/Content.html" title="Content">
|
|
<i class="none"></i>
|
|
Content</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="../Modules/CreativeCommons.html" title="Creative Commons">
|
|
<i class="none"></i>
|
|
Creative Commons</a>
|
|
</li>
|
|
|
|
<li class="active">
|
|
|
|
<a href="#"><i class="none"></i>Yahoo! MediaRSS</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="../Modules/IPhotoPhotocasting.html" title="iPhoto Photocasting">
|
|
<i class="none"></i>
|
|
iPhoto Photocasting</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="../Modules/A9OpenSearch.html" title="A9 OpenSearch">
|
|
<i class="none"></i>
|
|
A9 OpenSearch</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="../Modules/MicrosoftSimpleListExtensions.html" title="Microsoft Simple List Extensions">
|
|
<i class="none"></i>
|
|
Microsoft Simple List Extensions</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="../Modules/MicrosoftSimpleSharingExtensions.html" title="Microsoft Simple Sharing Extensions">
|
|
<i class="none"></i>
|
|
Microsoft Simple Sharing Extensions</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="../Modules/Weather.html" title="Yahoo! Weather">
|
|
<i class="none"></i>
|
|
Yahoo! Weather</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="../Fetcher/index.html" title="Fetcher">
|
|
<i class="icon-chevron-right"></i>
|
|
Fetcher</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="../Opml/index.html" title="OPML">
|
|
<i class="none"></i>
|
|
OPML</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="../Propono/index.html" title="Propono">
|
|
<i class="none"></i>
|
|
Propono</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="../Certiorem/index.html" title="Certiorem">
|
|
<i class="icon-chevron-right"></i>
|
|
Certiorem</a>
|
|
</li>
|
|
<li class="nav-header">Project Documentation</li>
|
|
|
|
<li>
|
|
|
|
<a href="../project-info.html" title="Project Information">
|
|
<i class="icon-chevron-right"></i>
|
|
Project Information</a>
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
|
|
<hr class="divider" />
|
|
|
|
<div id="poweredBy">
|
|
<div class="clear"></div>
|
|
<div class="clear"></div>
|
|
<div class="clear"></div>
|
|
<a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
|
|
<img class="builtBy" alt="Built by Maven" src="../images/logos/maven-feather.png" />
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div id="bodyColumn" class="span9" >
|
|
|
|
<div class="section">
|
|
<h2>MediaRSS<a name="MediaRSS"></a></h2>
|
|
<p>This plugin is for use with Yahoo! MediaRSS/Flickr Photostreams</p>
|
|
<div class="section">
|
|
<h3>Sample Usage<a name="Sample_Usage"></a></h3>
|
|
<div class="source">
|
|
<pre>SyndFeed feed = input.build( myRSSFile );
|
|
List entries = feed.getEntries();
|
|
for( int i = 0; i < entries.size(); i++ ){
|
|
System.out.println( ((SyndEntry) entries.get(i)).getModule( MediaModule.URI ) );
|
|
}
|
|
|
|
//Alternatively, to add a media item to an entry:
|
|
|
|
MediaContent[] contents = new MediaContent[1];
|
|
MediaContent myItem = new MediaContent( new UrlReference("http://me.com/movie.mpg") );
|
|
contents[0] = myItem();
|
|
Metadata md = new Metadata();
|
|
Thumbnail[] thumbs = new Thumbnail[2];
|
|
thumbs[0] = new Thumbnail( new URL("http://me.com/movie1.jpg") );
|
|
thumbs[1] = new Thumbnail( new URL("http://me.com/movie2.jpg") );
|
|
md.setThumbnail( thumbs );
|
|
myItem.setMetadata( md );
|
|
MediaEntryModuleImpl module = new MediaEntryModuleImpl();
|
|
module.setMediaContents( contents );
|
|
mySyndEntry.getModules().add( module );</pre></div></div>
|
|
<div class="section">
|
|
<h3>Changes<a name="Changes"></a></h3>
|
|
<div class="section">
|
|
<h4>0.2.1<a name="a0.2.1"></a></h4>
|
|
<p>Bugfix for metadata on MediaGroups.</p></div>
|
|
<div class="section">
|
|
<h4>0.1<a name="a0.1"></a></h4>
|
|
<p>Initial release from ROME.</p></div></div></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<hr/>
|
|
|
|
<footer>
|
|
<div class="container-fluid">
|
|
<div class="row span12">Copyright © 2016.
|
|
All Rights Reserved.
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html>
|