This topic provides a reference to Brightcove's MRSS extension.
The RSS output from the Brightcove Media API read methods uses the MRSS extension to RSS (documented by Yahoo at: http://search.yahoo.com/mrss), and a small Brightcove extension to RSS. The Brightcove RSS extension includes the following elements:
| element | type | description |
|---|---|---|
| playerid | String | The id of a Brightcove player. |
| lineupid | String | The id of a playlist. |
| titleid | String | The id of a video. |
| viewcount | The number of times the video has been viewed. The viewcount element takes an optional attribute named period, the value of which can be one of all-time (total number of times viewed) or trailing-week (number of times viewed in the past week). | |
| duration | Long | The length of the video in seconds. |
| embeddable | Boolean | Does this video allow viral syndication? |
| error | Contains a numerical error code and error message |
Here is the complete schema for the Brightcove RSS extension:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.brightcove.tv/link"
elementFormDefault="qualified"
targetNamespace="http://www.brightcove.tv/link">
<xs:element name="playerid" type="xs:string" />
<xs:element name="lineupid" type="xs:string" />
<xs:element name="titleid" type="xs:string" />
<xs:element name="viewcount" >
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:int">
<xs:attribute name="period" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="all-time" />
<xs:enumeration value="trailing-week" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="duration" type="xs:long" />
<xs:element name="embeddable" type="xs:boolean" />
<xs:element name="error" >
<xs:complexType>
<xs:sequence>
<xs:element name="code" >
<xs:annotation>
<xs:documentation>A numeric code that uniquely identifies
this particular type of error
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:maxInclusive value="10000" />
<xs:minInclusive value="0" />
<xs:fractionDigits value="0" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="message" >
<xs:annotation>
<xs:documentation>
A human-readable description of the error.
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string" />
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>