XML technologies / RSS & Atom / RSS 2.0 / Extension modules / The Media RSS from Yahoo!
(Excerpt from "Newsfeeds with RSS and Atom" by Heinz Wittenbrink, published by Galileo Press, 2005)
Yahoo! publicly developed a Media RSS specification; version 1.0 is used for Yahoo!’s video search. Dave Winer complained irritably about Yahoo!’s extensive use of his work without acknowledgment or even notification. The module’s elements should replace and supplement the element enclosure and allow differentiated media syndication. It supports thumbnails, copyright information, and transcripts.
The namespace URI is
"http://search.yahoo.com/mrss/".
As the namespace prefix even the specification uses media:.
Media RSS addresses the requirements of films and TV programs, providing elements for their characteristic metadata to organize and index media content. Further descriptive attributes are planned for future versions.
Elements of the Media RSS module
The element media:group is a descendant of item. Its descendants are several elements of type media:url referencing the same content in different representations. The element is optional.
The extension element media:content is a descendant of item or media:group. Within an element of type media:group it should recur only for different representations of the same content. It publishes any kind of media and has ten attributes, almost all optional:
urlspecifies the medium’s URI. If absent, an element of typeplayermust be added.fileSizecontains the size in bytes.typespecifies the media type (MIME type).isDefaultspecifies whether this is the default medium in a group, played unless another is explicitly requested. Allowed values aretrueandfalse.expressionmay have the valuessample,fullornonstop. The value distinguishes a sample from the full version;nonstopis used for continuous streaming. The default isfull.bitrategives the stream’s kilobits per second, distinguishing streams with different download rates.frameratespecifies the frames per second for visual media.duration,heightandwidthspecify playback duration, size, and width.playerWidthandplayerHeightspecify the playback application’s window dimensions, whileplayerURLspecifies a URI identifying the playback software.
In principle, the two elements media:content and media:group may occur any number of times under one element. However, the specification recommends the RSS principle that each item contains one "story", and that an element item should reference only one item or medium. As noted, the RSS element enclosure is also the subject of debate over repetition within item. If several media occur inside an item, they can no longer be associated with the URI in link.
Further optional elements may describe item, media:content or media:group (the latter in the extension namespace, marked here with the proposed prefix media:). They describe a property of that element.
media:adultmay have the valuestrueandfalseand indicates adult content. The specification notes that content can be rated in more detail with the RSS elementratingusing PICS. This is the most useful part of an otherwise awkward definition: an element is defined where an attribute would suffice, and syntax and usage rules are confused. The element is called "required" when the medium is suitable only for adults.media:titlecontains the media object’s title. No further rules specify whether markup is allowed.media:thumbnail contains information about an image used as the media object’s thumbnail. Its three attributes areurlfor the URI,heightfor the height, andwidthfor the media object’s width.media:categoryspecifies the media category, illustrating an extension Winer would call funky. Its function does not noticeably differ from the elementcategoryalready included in RSS 2.0.media:categoryhas two attributes:schemeidentifies the taxonomy from which the category term comes.labelprovides a human-readable category label.media:hashprovides thehashof the medium using the MD5 Message-Digest algorithm, allowing verification of complete transfer.media:playershould let a browser’s media player open the medium. Its attributes are:urlfor the player software URI,heightfor the height, andwidthfor the window width.media:creditcontains people and companies, and in future versions places, involved in producing the medium. The optional attributerolespecifies their role in production. The specification lists roles includingcartoonist,composerandplaywright. It also references the European Broadcasting Union’s role terminology.media:textcontains the transcript mentioned above. The attributetypewith the valuesplainorhtmlspecifies its text format.typeis required. Time-coded text is planned for future support, for example movie subtitles.
Some Media RSS constructs offer functions familiar from the Synchronized Multimedia Integration Language (SMIL). SMIL also supports alternative media, transcripts, and copyright information, but was specifically designed to control presentation timing on the Web. Media RSS offers only rudimentary functions by comparison. Real Networks, Yahoo!’s competitor in online media, promoted SMIL; perhaps this explains why it was not used to define an RSS media module.

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.