Add an Enclosure
If you want to add audio, video, or even still JPEG images to your feed, you'll need to create an enclosure for them in which you'll specify their URL, size, and MIME type.
To find the size of an enclosure:
1. | Select the file that you want to add to your RSS feed.
| 2. | In Windows, choose Properties, and on the Mac, select Get Info.
| 3. | Jot down the number of bytes in the desired enclosure (Figure 25.8).
|
To add an enclosure:
1. | Within the article's item (that you created on page 382), type <enclosure.
| 2. | Next, type url="http://www. yourdomain.com/file.ext", to indicate the location of the multimedia file on your server.
| 3. | Type a space followed by length="n", where n is the number of bytes in your multimedia enclosure. You should use only digitsno commas or periods (e.g., 36699714).
| 4. | Add type="type/subtype", where type and subtype make up the official MIME code for your enclosure (see tip).
| 5. | Type /> to complete the enclosure.
|
Tips
Make sure you use a full URL, complete with the HTTP protocol. Other protocols are not permitted.
Be sure to use the bytes, not the KB, MB, or GB when noting the size of the enclosure. Use only digitsand no place separators like commas or periodsfor specifying the size (e.g., 36699714). You can find a list of MIME types here: http://www.iana.org/assignments/media-types/. You can enclose any kind of file, it doesn't have to be audio or video. That doesn't mean that every aggregator will be able to handle it though. Some aggregators offer links to multimedia files that they cannot handle, while others ignore them completely.
iTunes can not only see multimedia enclosures, but can download and play them automatically as well. Although this is technically all you need to create a podcast for iTunes, there are additional RSS tags developed by Apple that will help describe your podcast to prospective viewers and listeners, as described on the following pages.
|