• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Work with all your cloud files (Drive, Dropbox, and Slack and Gmail attachments) and documents (Google Docs, Sheets, and Notion) in one place. Try Dokkio (from the makers of PBworks) for free. Now available on the web, Mac, Windows, and as a Chrome extension!

View
 

Atom Media for Activity Streams

Page history last edited by Chris Messina 12 years, 7 months ago

Atom Media is a new specification for syndicating media in Atom feeds. It has inherited much from MediaRSS, but is simpler and easier to implement.

The following examples are taken from Revver's most recent uploads feed.

Typical MediaRSS entry

<?xml version="1.0"?>
<rss xmlns:media="http://search.yahoo.com/mrss/" version="2.0" xml:lang="en-US">
    <channel>
        <title>Revver Media RSS</title>
        <description>Latest media from Revver</description>
        <link>http://revver.com</link>
        <generator>revver.com</generator>
        <webMaster>webmaster@revver.com</webMaster>
        <item>
            <title>Controled Building Explosion -Demolition</title>
            <pubDate>Sun, 26 Apr 2009 14:52:57 +0000</pubDate>
            <description>&lt;div&gt;&lt;img src="http://frame.revver.com/frame/120x90/1614532.jpg" alt="" /&gt;Controled Building Explosion -Demolition&lt;/div&gt;</description>
            <category>building</category>
            <category>building explosion</category>
            <category>controled building explosion</category>
            <category>demolition</category>
            <category>explosion</category>
            <category>implosion</category>
            <link>http://media.revver.com/qt;sharer=122694/1614532.mov</link>
            <guid isPermaLink="false">http://media.revver.com/qt;sharer=122694/1614532.mov</guid>
            <media:title>Controled Building Explosion -Demolition</media:title>
            <media:text type="html">&lt;div&gt;&lt;img src="http://frame.revver.com/frame/120x90/1614532.jpg" alt="" /&gt;Controled Building Explosion -Demolition&lt;/div&gt;</media:text>
            <media:credit>vojin</media:credit>
            <media:player url="http://media.revver.com/qt;sharer=122694/1614532.mov"/>
            <media:content url="http://frame.revver.com/frame/120x90/1614532.jpg" width="120" type="image/jpg" height="90"/>
            <media:thumbnail url="http://frame.revver.com/frame/120x90/1614532.jpg" width="120" height="90"/>
            <enclosure url="http://media.revver.com/qt;sharer=122694/1614532.mov" length="5630853" type="video/quicktime"/>
        </item>
    </channel>
</rss>

Entry in Atom Media

<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://example.com/to-be-confirmed">
        <title>Revver Media RSS</title>
        <subtitle>Latest media from Revver</subtitle>
        <link>http://revver.com</link>
        <generator>revver.com</generator>
        <published>2009-04-26T16:12:35Z</published>
        <updated>2009-04-26T16:12:35Z</updated>
        <author>
            <email>webmaster@revver.com</email>
        </author>
        <entry>
            <title>Controled Building Explosion -Demolition</title>
            <id>http://media.revver.com/qt;sharer=122694/1614532.mov</id>
            <author>
                <name>vojin</name>
            </author>
            <media:description>&lt;div&gt;&lt;img src="http://frame.revver.com/frame/120x90/1614532.jpg" alt="" /&gt;Controled Building Explosion -Demolition&lt;/div&gt;</media:description>
            <published>Sun, 26 Apr 2009 14:52:57 +0000</published>
            <category term="building" />
            <category term="building explosion" />
            <category term="controled building explosion" />
            <category term="demolition" />
            <category term="explosion" />
            <category term="implosion" />
            <link rel="preview" url="http://frame.revver.com/frame/120x90/1614532.jpg" media:width="120" media:height="90" type="image/jpeg" />
            <link rel="enclosure" url="http://media.revver.com/qt;sharer=122694/1614532.mov" media:length="5630853" type="video/quicktime" />
        </entry>
</feed>

Entry as Activity in Atom Media

<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:activity="http://activitystrea.ms/spec/1.0/" xmlns:media="http://example.com/to-be-confirmed">
        <title>Revver Media RSS</title>
        <subtitle>Latest media from Revver</subtitle>
        <link>http://revver.com</link>
        <generator>revver.com</generator>
        <published>2009-04-26T16:12:35Z</published>
        <updated>2009-04-26T16:12:35Z</updated>
        <author>
            <email>webmaster@revver.com</email>
        </author>
        <entry>
            <title>vojin uploaded a video: Controled Building Explosion -Demolition</title>
            <id>http://media.revver.com/activities/122694</id>
            <author>
                <name>vojin</name>
            </author>
            <activity:verb>
                http://activitystrea.ms/schema/1.0/post
            </activity:verb>
            <activity:object>
                <title>Controled Building Explosion -Demolition</title>
                <id>http://media.revver.com/qt;sharer=122694/1614532.mov</id>
                <activity:object-type>
                    tag:atomactivity.example.com,2008:video
                </activity:object-type>
                <media:description>&lt;div&gt;&lt;img src="http://frame.revver.com/frame/120x90/1614532.jpg" alt="" /&gt;Controled Building Explosion -Demolition&lt;/div&gt;</media:description>
                <published>Sun, 26 Apr 2009 14:52:57 +0000</published>
                <category term="building" />
                <category term="building explosion" />
                <category term="controled building explosion" />
                <category term="demolition" />
                <category term="explosion" />
                <category term="implosion" />
                <link rel="preview" url="http://frame.revver.com/frame/120x90/1614532.jpg" media:width="120" media:height="90" type="image/jpeg" />
                <link rel="enclosure" url="http://media.revver.com/qt;sharer=122694/1614532.mov" media:length="5630853" type="video/quicktime" />
            </activity:object>
        </entry>
</feed>

Comments (0)

You don't have permission to comment on this page.