|
Cette page est destinée à des ingénieurs et autres professionnels techniques. Sony Computer Entertainment Inc. ne peut répondre à des questions détaillées sur les informations contenues dans cette page. |
The RSS channel reads and displays RSS documents that comply with RSS 2.0 and "Media RSS". The following presents details of the RSS document specifications.
◆ Character Codes
Only UTF-8 is supported.
◆ Text Format
Character data in tags must be plain text. Even if HTML or another markup language is used, it is processed as is, as character data.
◆ Restrictions on the Number of Characters
The maximum length of the value of an XML tag depends on the tag, as shown below.
| XML Tag | Maximum Size | Maximum Number of Characters | Supported System |
|---|---|---|---|
| <title> | 768 | 256 | 2.60 or later |
| <description> | 1020 | 340 | 2.60 or later |
| <copyright> | 768 | 256 | 2.60 or later |
| <link> | 256 | 256 | 3.10 or later |
| <author> | 768 | 256 | 2.60 or later |
| <url> | 256 | 256 | 2.60 or later |
| <pubDate> | 64 | 64 | 2.60 or later |
If a value is larger than the maximum size or if it exceeds the maximum number of characters, then if it is used as character data, the part over the limit is displayed as "..." If the data is used for internal processing, it is treated as an invalid value.
◆ Displaying Tag Information
The following table shows whether an XML tag applies to a <channel> tag or an <item> tag, and where it is displayed.
| XML Tag | <channel> | <item> | Screen Where it is Displayed | Supported System |
|---|---|---|---|---|
| <title> | O | O | XMB™ channel list Channel information screen Item information screen |
2.60 or later |
| <description> | O | O | Channel information screen Item information screen |
2.60 or later |
| <copyright> | O | | Channel information screen | 2.60 or later |
| <link> | O | | Channel information screen | 3.10 or later |
| <author> | | O | Item information screen | 2.60 or later |
| <enclosure> (url attribute) |
| O | Item information screen | 2.60 or later |
| <pubDate> | | O | XMB™ channel list Item information screen |
2.60 or later |
| <media:content> (url attribute) |
| O | Item information screen | 3.30 or later |
◆ Item Extraction Conditions
Whether or not an item is extracted is determined by the <enclosure> attribute and <pubDate> value. A single channel can include more than one type of format.
(1) <enclosure>/<media:content> attribute
If the url attribute extension or any MIME type in a type attribute is supported, the corresponding item is displayed in the item list of the RSS channel. Supported extensions and MIME types are shown below.
| MIME Type of type Attribute Value | Extension of url Attribute Value | Format Type | Supported System |
|---|---|---|---|
| audio/mp3 | | Audio: MP3 | 2.60 or later |
| audio/x-mp3 | | Audio: MP3 | 2.60 or later |
| x-audio/mp3 | | Audio: MP3 | 2.60 or later |
| audio/aac | | Audio: MP4(AAC) | 2.60 or later |
| audio/x-aac | | Audio: MP4(AAC) | 2.60 or later |
| x-audio/aac | | Audio: MP4(AAC) | 2.60 or later |
| audio/m4a | | Audio: MP4(AAC) | 2.60 or later |
| audio/x-m4a | | Audio: MP4(AAC) | 2.60 or later |
| x-audio/m4a | | Audio: MP4(AAC) | 2.60 or later |
| audio/mp4 | | Audio: MP4(AAC) | 2.60 or later |
| audio/x-mp4 | | Audio: MP4(AAC) | 2.60 or later |
| x-audio/mp4 | | Audio: MP4(AAC) | 2.60 or later |
| video/mp4 | | Video: MP4 | 2.80 or later |
| video/x-mp4 | | Video: MP4 | 2.80 or later |
| x-video/mp4 | | Video: MP4 | 2.80 or later |
| video/m4v | | Video: MP4 | 2.80 or later |
| video/x-m4v | | Video: MP4 | 2.80 or later |
| x-video/m4v | | Video: MP4 | 2.80 or later |
| video/avi | | Video: AVI(Motion JPEG) | 3.00 or later |
| video/x-avi | | Video: AVI(Motion JPEG) | 3.00 or later |
| x-video/avi | | Video: AVI(Motion JPEG) | 3.00 or later |
| image/jpeg | | Still image: JPG | 2.80 or later |
| image/gif | | Still image: GIF | 2.80 or later |
| image/png | | Still image: PNG | 2.80 or later |
| image/tiff | | Still image: TIFF | 2.80 or later |
| image/bmp | | Still image: BMP | 2.80 or later |
| | mp3 | Audio: MP3 | 2.60 or later |
| | mp4 | Audio: MP4 (AAC) | 2.60, 2.70, 2.71 |
| | m4a | Audio: MP4(AAC) | 2.70 or later |
| | mp4 | Video: MP4 | 2.80 or later |
| | m4v | Video: MP4 | 2.80 or later |
| | avi | Video: AVI(Motion JPEG) | 3.00 or later |
| | jpeg | Still image: JPG | 2.80 or later |
| | jpg | Still image: JPG | 2.80 or later |
| | gif | Still image: GIF | 2.80 or later |
| | png | Still image: PNG | 2.80 or later |
| | tiff | Still image: TIFF | 2.80 or later |
| | tif | Still image: TIFF | 2.80 or later |
| | bmp | Still image: BMP | 2.80 or later |
| audio/mpeg | | Audio: MP3 | 2.60 or later |
| audio/x-mpeg | | Audio: MP3 | 2.60 or later |
| x-audio/mpeg | | Audio: MP3 | 2.60 or later |
| audio/mpg | | Audio: MP3 | 2.60 or later |
| audio/x-mpg | | Audio: MP3 | 2.60 or later |
| x-audio/mpg | | Audio: MP3 | 2.60 or later |
| audio/mpegurl | | Audio: MP3 | 2.60 or later |
| audio/x-mpegurl | | Audio: MP3 | 2.60 or later |
| x-audio/mpegurl | | Audio: MP3 | 2.60 or later |
| video/mpeg | | Video: MP4 | 2.80 or later |
| video/x-mpeg | | Video: MP4 | 2.80 or later |
| x-video/mpeg | | Video: MP4 | 2.80 or later |
Priority when there is an <enclosure> element and a <media:content> element within an <item> element
The <enclosure> element takes precedence, and the <media:content> element is ignored.
Priority when there are multiple <enclosure>/<media:content> elements within an <item> element
For systems: 2.60, 2.70, 2.71, 2.80, 2.81 and 2.82
The first <enclosure> element that satisfies the extraction conditions is extracted.
For system: 3.00 or later
The <enclosure> element having the highest priority is extracted, based on the priority order shown in the above table.
(2) <pubDate> value
The value of the pubDate tag determines the order in which the items are displayed in the item list of the RSS channel. The latest 100 items are displayed with the most recent item displayed first.
An item that does not have a legal pubDate value is not displayed.
◆ Viewing, Listening to, or Browsing Items (Before Saving)
The following table lists format types and whether or not items of those types can be viewed, listened to, or browsed (before saving).
| Format Type | Whether or Not Item Can be Viewed, Listened to, or Browsed (Before Saving) | Supported System |
|---|---|---|
| Audio: MP3 | O | 2.60 or later |
| Audio: MP4 (AAC) | O | 2.60 or later |
| Video: MP4 | X | |
| Video: AVI (Motion JPEG) | X | |
| Still image: GIF | O | 3.80 or later |
| Still image: JPEG | O | 3.80 or later |
| Still image: PNG | O | 3.80 or later |
| Still image: BMP | O | 3.80 or later |
| Still image: TIFF | O | 3.80 or later |
◆ Viewing, Listening to, or Browsing Items (After Saving)
The following table lists format types and whether or not items of those types can be viewed, listened to, or browsed (after saving).
| Format Type | Whether or Not Item Can be Viewed, Listened to, or Browsed (After Saving) | Supported System |
|---|---|---|
| Audio: MP3 | O | 2.70 or later |
| Audio: MP4 (AAC) | O | 2.70 or later |
| Video: MP4 | O | 2.80 or later |
| Video: AVI (Motion JPEG) | O | 3.00 or later |
| Still image: GIF | O | 2.80 or later |
| Still image: JPEG | O | 2.80 or later |
| Still image: PNG | O | 2.80 or later |
| Still image: BMP | O | 2.80 or later |
| Still image: TIFF | O | 2.80 or later |
◆ Folder and File Names Used for Saving Items
The following table shows the relationship between the save format type and the folder name/file name used for saving items.
| Format Type | Folder Creation Position | Folder Name | File Name | Extension | Supported System |
|---|---|---|---|---|---|
| Audio: MP3 | /PSP/MUSIC | *1 | *2 | mp3 | 2.70, 2.71 |
| Audio: MP4(AAC) | /PSP/MUSIC | *1 | *2 | mp4 | 2.70, 2.71 |
| Audio: MP3 | /MUSIC | *1 | *2 | mp3 | 2.80, 2.81, 3.00, 3.01, 3.02, 3.03 |
| Audio: MP4(AAC) | /MUSIC | *1 | *2 | mp4 | 2.80, 2.81, 3.00, 3.01, 3.02, 3.03 |
| Video: MP4 | /VIDEO | *1 | *2 | mp4 | 2.80, 2.81, 3.00, 3.01, 3.02, 3.03 |
| Video: AVI (Motion JPEG) | /VIDEO | *1 | *2 | avi | 3.00, 3.01, 3.02, 3.03 |
| Still image: GIF | /PICTURE | *1 | *2 | gif | 2.80, 2.81, 3.00, 3.01, 3.02, 3.03 |
| Still image: JPEG | /PICTURE | *1 | *2 | jpg | 2.80, 2.81, 3.00, 3.01, 3.02, 3.03 |
| Still image: PNG | /PICTURE | *1 | *2 | png | 2.80, 2.81, 3.00, 3.01, 3.02, 3.03 |
| Still image: BMP | /PICTURE | *1 | *2 | bmp | 2.80, 2.81, 3.00, 3.01, 3.02, 3.03 |
| Still image: TIFF | /PICTURE | *1 | *2 | tif | 2.80, 2.81, 3.00, 3.01, 3.02, 3.03 |
| Audio: MP3 | /MUSIC | *1 | *3 | mp3 | 3.10 or later |
| Audio: MP4(AAC) | /MUSIC | *1 | *3 | mp4 | 3.10 or later |
| Video: MP4 | /VIDEO | *1 | *3 | mp4 | 3.10 or later |
| Video: AVI (Motion JPEG) | /VIDEO | *1 | *3 | avi | 3.10 or later |
| Still image: GIF | /PICTURE | *1 | *3 | gif | 3.10 or later |
| Still image: JPEG | /PICTURE | *1 | *3 | jpg | 3.10 or later |
| Still image: PNG | /PICTURE | *1 | *3 | png | 3.10 or later |
| Still image: BMP | /PICTURE | *1 | *3 | bmp | 3.10 or later |
| Still image: TIFF | /PICTURE | *1 | *3 | tif | 3.10 or later |
| *1 | The folder name will be a string starting with "[RSS] " and followed by the value of the <title> element that is inside the <channel> element. |
| *2 | The file name will be a string corresponding to the file name of the url attribute of the <enclosure> element. Note that when multiple items have the same file names, items will be generated that might not be downloadable. |
| *3 | The file name will be a string corresponding to the value of the <title> element that is inside the <item> element. Note that when the file names of multiple items are the same, some items will not be able to be downloaded. |
◆ Channel Thumbnail Image
An <image> tag is used for displaying the channel icon.
The image file of the url attribute is used as the thumbnail image for the channel that is displayed in the channel list. The supported image codecs are as follows.
- GIF
- JPEG
- PNG
- TIFF
- BMP
The size of the image file must not exceed 200KB.
The size of a decoded image must not exceed 720 pixels in both the vertical and horizontal directions.
◆ Item Thumbnail Image
For system: 3.30 or later
The file that is specified in the url attribute of a <media:thumbnail> tag is used as the icon for the item. The maximum width that can be specified is 160 and the maximum height that can be specified is 120.
The image file of the url attribute is used as the thumbnail image for the item that is displayed in the item list. The supported image codecs are as follows.
- JPEG
The size of the image file must not exceed 200KB.
The size of a decoded image must not exceed 160 pixels vertically and 120 pixels horizontally.
◆ XML Entities
The five characters shown below have special meanings in XML, so they must be replaced by the respective XML entities when used in character data (these are defined in 4.6 Predefined Entities of Extensible Markup Language (XML) 1.0 (Third Edition)).
| Character | Name | XML Entity |
|---|---|---|
| & | ampersand | & |
| < | less-than sign | < |
| > | greater-than sign | > |
| ' | apostrophe | ' |
| " | quotation | " |
All other characters can be directly entered in an editor that supports UTF-8. The entities can also be specified by a numeric character reference that identifies the Unicode value of the character. Some examples are shown below. (For more detailed information, refer to Extensible Markup Language (XML) 1.0 (Third Edition): Appendix D Expansion of Entity and Character References (Normative).)
| Character | Name | Numeric Character Reference |
|---|---|---|
| © | copyright sign | © |
| ™ | trade mark sign | ™ |
| ® | registered trademark sign | ® |
◆ Sample RSS Document
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>Sample Channel</title>
<link>http://www.example.com/</link>
<description>This is sample contents.</description>
<language>en-us</language>
<copyright>(c) 2005 example.com. All rights reserved.</copyright>
<image>
<url>http://www.example.com/xxx/xxx.jpg</url>
<title>Sample Channel</title>
</image>
<item>
<title>Music item 1</title>
<link>http://www.example.com/xxx/</link>
<description> classic music </description>
<author>xxx@example.com</author>
<pubDate>Mon, 1 Jan 2005 10:00:00 +0000</pubDate>
<enclosure url="http://www.example.com/xxx/sample1.mp3"
length="1500000" type="audio/mp3"
/>
<media:thumbnail
url="http://www.example.com/xxx/image/thumbnail1.jpg"
width="80" height="60"
/>
</item>
<item>
<title>Music item 2</title>
<link>http://www.example.com/xxx/</link>
<description> classic music </description>
<author>xxx@example.com</author>
<pubDate>Mon, 1 Jan 2005 11:00:00 +0000</pubDate>
<enclosure url="http://www.example.com/xxx/sample2.m4a"
length="1500000" type="audio/mp4"
/>
<media:thumbnail
url="http://www.example.com/xxx/image/thumbnail2.jpg"
width="80" height="60"
/>
</item>
<item>
<title>Video item 1</title>
<link>http://www.example.com/xxx/</link>
<description> classic movie </description>
<author>xxx@example.com</author>
<pubDate>Mon, 1 Jan 2005 12:00:00 +0000</pubDate>
<enclosure url="http://www.example.com/xxx/sample3.mp4"
length="1500000" type="video/m4v"
/>
<media:thumbnail
url="http://www.example.com/xxx/image/thumbnail3.jpg"
width="80" height="60"
/>
</item>
<item>
<title>Video item 2</title>
<link>http://www.example.com/xxx/</link>
<description> classic movie </description>
<author>xxx@example.com</author>
<pubDate>Mon, 1 Jan 2005 13:00:00 +0000</pubDate>
<enclosure url="http://www.example.com/xxx/sample4.avi"
length="1500000" type="video/avi"
/>
<media:thumbnail
url="http://www.example.com/xxx/image/thumbnail4.jpg"
width="80" height="60"
/>
</item>
<item>
<title>Picture item 1</title>
<link>http://www.example.com/xxx/</link>
<description> still picture </description>
<author>xxx@example.com</author>
<pubDate>Mon, 1 Jan 2005 14:00:00 +0000</pubDate>
<enclosure url="http://www.example.com/xxx/sample5.jpg"
length="500000" type="image/jpeg"
/>
<media:thumbnail
url="http://www.example.com/xxx/image/thumbnail5.jpg"
width="80" height="60"
/>
</item>
<item>
<title>Picture item 2</title>
<link>http://www.example.com/xxx/</link>
<description> still picture </description>
<author>xxx@example.com</author>
<pubDate>Mon, 1 Jan 2005 15:00:00 +0000</pubDate>
<enclosure url="http://www.example.com/xxx/sample6.gif"
length="500000" type="image/gif"
/>
<media:thumbnail
url="http://www.example.com/xxx/image/thumbnail6.jpg"
width="80" height="60"
/>
</item>
<item>
<title>Picture item 3</title>
<link>http://www.example.com/xxx/</link>
<description> still picture </description>
<author>xxx@example.com</author>
<pubDate>Mon, 1 Jan 2005 16:00:00 +0000</pubDate>
<enclosure url="http://www.example.com/xxx/sample7.png"
length="500000" type="image/png"
/>
<media:thumbnail
url="http://www.example.com/xxx/image/thumbnail7.jpg"
width="80" height="60"
/>
</item>
<item>
<title>Picture item 4</title>
<link>http://www.example.com/xxx/</link>
<description> still picture </description>
<author>xxx@example.com</author>
<pubDate>Mon, 1 Jan 2005 17:00:00 +0000</pubDate>
<enclosure url="http://www.example.com/xxx/sample8.tif"
length="500000" type="image/tiff"
/>
<media:thumbnail
url="http://www.example.com/xxx/image/thumbnail8.jpg"
width="80" height="60"
/>
</item>
<item>
<title>Picture item 5</title>
<link>http://www.example.com/xxx/</link>
<description> still picture </description>
<author>xxx@example.com</author>
<pubDate>Mon, 1 Jan 2005 18:00:00 +0000</pubDate>
<enclosure url="http://www.example.com/xxx/sample9.bmp"
length="500000" type="image/bmp"
/>
<media:thumbnail
url="http://www.example.com/xxx/image/thumbnail9.jpg"
width="80" height="60"
/>
</item>
</channel>
</rss>
◆ Related Documents
The RSS channel complies with or supports several standards. For details, refer to the documents listed below.
URL/URI
[RFC2396] Uniform Resource Identifiers (URI): Generic Syntax
MIME type
[RFC2936] HTTP MIME Type Handler Detection
RSS
RSS 2.0 Specification
http://blogs.law.harvard.edu/tech/rss
Media RSS
"Media RSS" Specification Version 1.1.1
http://search.yahoo.com/mrss
XML
Extensible Markup Language (XML) 1.0 (Third Edition)
W3C Recommendation 04 February 2004
http://www.w3.org/TR/2004/REC-xml-20040204
◆ Trademarks
"PlayStation" is a registered trademark of Sony Computer Entertainment Inc.
"PSP" is a trademark of Sony Computer Entertainment Inc.
"XMB" is a trademark of Sony Corporation and Sony Computer Entertainment Inc.