Signagelive Help Centre

Examples of Signagelive Media RSS Feeds (MRSS)

Follow

We are often asked to show examples of Media RSS (MRSS) feeds that are known to work within signagelive. In the following guide you will find two Media RSS examples and the second of which will show you how you can add media asset expiry to your feed.

Simple Media RSS (No Expiry)

The following example is a simple Media RSS (MRSS) that does not contain any form of media asset expiry. All of the media content contained within the feed will continue to play until they are removed.

<?xml version="1.0" encoding="utf-8"?>
<rss version = "2.0" xmlns:media = "http://search.yahoo.com/mrss/">
   <channel>
     <title>Sample Feed</title>
     <link></link>
     <description>Sample Media RSS</description>
   <item>
      <title>Item 1</title>
   <description>Sample Media RSS Item 1</description>
   <media:content
      url = "http://server/image1.jpg"
      type = "image/jpeg"
      medium = "image"
      duration = "10">
      </media:content>
   </item>
<item>
      <title>Item 2</title>
   <description>Sample Media RSS Item 2</description>
   <media:content
      url = "http://server/image2.jpg"
      type = "image/jpeg"
      medium = "image"
      duration = "10">
      </media:content>
   </item>
<item>
      <title>Item 3</title>
   <description>Sample Media RSS Item 3</description>
   <media:content
      url = "http://server/image3.jpg"
      type = "image/jpeg"
      medium = "image"
      duration = "10">
      </media:content>
   </item>
<item>
     <title>Item 4</title>
  <description>Sample Media RSS Item 4</description>
  <media:content
     url = "http://server/image2.jpg"
     type = "image/jpeg"
     medium = "image"
     duration = "10">
     </media:content>
   </item>
</channel>
</rss>

Simple Media RSS (Including Media Expiry)

The following example is a simple Media RSS (MRSS) that contains expiry at each level within the feed. The expiry of media is optional at each level and for example, could only be specified on the media:content element and not the parent channel or item elements. Within the feed if a parent element has expired then, as a rule, all child elements are also considered to have expired.

<?xml version="1.0" encoding="utf-8"?>
<rss version = "2.0" xmlns:media = "http://search.yahoo.com/mrss/"
xmlns:dcterms="http://purl.org/dc/terms/">
   <channel>
      <title>Sample Feed</title>
      <link></link>
      <description>Sample Media RSS</description>
   <dcterms:valid>start=2010-08-01T00:00:00;end=2011-08-01T00:00:00;scheme=W3C-DTF</dcterms:valid>
      <item>
<title>Item 1</title>
     <description>Sample Media RSS Item 1</description>
      <dcterms:valid>start=2010-08-01T00:00:00;end=2011-08-01T00:00:00;scheme=W3C-DTF</dcterms:valid>

      <media:content
         url = "http://server/image1.jpg"
         type = "image/jpeg"
         medium = "image"
         duration = "10">
      <dcterms:valid>start=2010-08-01T00:00:00;end=2011-08-01T00:00:00;scheme=W3C-DTF</dcterms:valid>
   </media:content>
 </item>
     <item>
<title>Item 2</title>
    <description>Sample Media RSS Item 2</description>
    <dcterms:valid>start=2010-08-01T00:00:00;end=2011-08-01T00:00:00;scheme=W3C-DTF</dcterms:valid>

     <media:content
        url = "http://server/image2.jpg"
        type = "image/jpeg"
        medium = "image"
        duration = "10">
    <dcterms:valid>start=2010-08-01T00:00:00;end=2011-08-01T00:00:00;scheme=W3C-DTF</dcterms:valid>
  </media:content>
 </item>
    <item>
<title>Item 3</title>
    <description>Sample Media RSS Item 3</description>
    <dcterms:valid>start=2010-08-01T00:00:00;end=2011-08-01T00:00:00;scheme=W3C-DTF</dcterms:valid>

    <media:content
       url = "http://server/image3.jpg"
       type = "image/jpeg"
       medium = "image"
       duration = "10">
    <dcterms:valid>start=2010-08-01T00:00:00;end=2011-08-01T00:00:00;scheme=W3C-DTF</dcterms:valid>
  </media:content>
 </item>
   <item>
<title>Item 4</title>
    <description>Sample Media RSS Item 4</description>
    <dcterms:valid>start=2010-08-01T00:00:00;end=2011-08-01T00:00:00;scheme=W3C-DTF</dcterms:valid>

    <media:content
       url = "http://server/image2.jpg"
       type = "image/jpeg"
       medium = "image"
       duration = "10">
    <dcterms:valid>start=2010-08-01T00:00:00;end=2011-08-01T00:00:00;scheme=W3C-DTF</dcterms:valid>

  </media:content>
 </item>
 </channel>
</rss>

Please Note: If you would like to download the XML feeds described in this guide then you will find them available below:

Was this article helpful?
0 out of 0 found this helpful

Comments

Powered by Zendesk