written 6.8 years ago by | • modified 2.8 years ago |
Subject: Advanced Internet Technology
Topic: RIA and Mashup
Difficulty: High
written 6.8 years ago by | • modified 2.8 years ago |
Subject: Advanced Internet Technology
Topic: RIA and Mashup
Difficulty: High
written 6.7 years ago by |
Enclosure
Some weblogs and news feeds want to provide you with more than just ASCII text or HTML formatted articles. A weblog author might want to record his daily experiences and publish them as audio data (often MP3) and of course make this available in the weblog's feed too. This is done by adding enclosures to feed items. Adding an enclosure means adding an URL to an item which the feed reader application can download and play with an appropriate media player.
In RSS 2.0, the syntax for the <enclosure> tag, an optional child of the <item> element, is as follows:
<enclosure url="https://example.com/file.mp3" length="123456789" type="audio/mpeg" />
where the value of the url attribute is a URL of a file, length is its size in bytes, and type its mime type. It is recommended that only one <enclosure> element is included per <item>.
Podcasting