Windows メディア プレーヤー 11 は、ユーザーが自分のコンピューターにポッドキャストから取得したコンテンツを格納できるようにする RSS アグリゲーター機能を提供します。 このトピックでは、RSS フィードに含まれる XML 要素について説明します。 さらに、これらの RSS 要素を Windows Media デバイス マネージャー プロパティにマップします。
RSS フィードの要素には、次の階層と属性があります。
<channel>
<title />
<link />
<description />
<language />
<copyright />
<managingEditor />
<webMaster />
<pubDate />
<lastBuildDate />
<category />
<generator />
<docs />
<cloud />
<ttl />
<image>
<url />
<title />
<link />
<width />
<height />
<description />
</image>
<rating />
<textInput>
<title />
<description />
<name />
<link />
</textInput>
<skipHours />
<skipDays />
<item>
<title />
<link />
<description />
<author />
<category domain = " "/>
<comments />
<enclousure url = " " length = " " type = " "/>
<guid isPermaLink = " "/>
<pubDate />
<source url = " " />
</item>
</channel>
次の表は、RSS フィード内のチャネル要素と、対応する Windows Media デバイス マネージャー プロパティの一覧です。
| Channel 要素 | Status | 対応する Windows Media デバイス マネージャー プロパティ |
|---|---|---|
| category | オプション | g_wszWMDMGenre |
| cloud | 該当なし | 該当なし |
| 著作権 | オプション | g_wszWMDMProviderCopyright |
| description | 必須 | g_wszWMDMDescription |
| docs | 該当なし | 該当なし |
| ジェネレーター (generator) | 該当なし | 該当なし |
| language | 該当なし | 該当なし |
| lastBuildDate | オプション | g_wszWMDMLastModifiedDate |
| link | 必須 | g_wszWMDMDestinationURL |
| managingEditor | オプション | g_wszWMDMEditor |
| Pubdate | オプション | g_wszWMDMYear |
| 評価 | 該当なし | 該当なし |
| skipDays | 該当なし | 該当なし |
| skipHours | 該当なし | 該当なし |
| Textinput | 該当なし | 該当なし |
| title | 必須 | g_wszWMDMTitle |
| ttl | 省略可能 | g_wszWMDMTimeToLive |
| ウェブ マスター | オプション | g_wszWMDMWebMaster |
次の表に、RSS フィードの画像要素と、対応する WMDM プロパティを示します。
| Image 要素 | Status | 対応する Windows Media デバイス マネージャー プロパティ |
|---|---|---|
| description | オプション | g_wszWMDMDescription |
| height | 省略可能 | g_wszWMDMHeight |
| link | 省略可能 | g_wszWMDMDestinationURL |
| title | オプション | g_wszWMDMTitle |
| url | 省略可能 | g_wszWMDMSourceURL |
| width | 省略可能 | g_wszWMDMWidth |
次の表に、RSS フィード内のアイテム要素と、対応する Windows Media デバイス マネージャー プロパティを示します。
| Item 要素 | 属性 | Status | 対応する Windows Media デバイス マネージャー プロパティ |
|---|---|---|---|
| author | オプション | g_wszWMDMAuthor | |
| category | オプション | g_wszWMDMGenre | |
| domain | 該当なし | 該当なし | |
| description | オプション | g_wszWMDMDescription | |
| エンクロージャ | オプション | 該当なし | |
| length | 必須 | g_wszWMDMFileSize | |
| type | 必須 | (MIME の種類はプロパティ コンテンツ タイプにマップする必要があります)。 | |
| url | 必須 | g_wszWMDMSourceURL | |
| guid | 省略可能 | g_wszWMDMediaGuid | |
| isPermaLink | 該当なし | 該当なし | |
| link | オプション | g_wszWMDMDestinationURL | |
| Pubdate | オプション | g_wszWMDMYear | |
| source | 該当なし | 該当なし | |
| title | オプション | g_wszWMDMTitle |
例
次の例は、発行会社の CEO が提供する架空のポッドキャストの完全な RSS フィードを示しています。
<channel>
<title>The Digital Publication</title>
<link>https://www.lucernepublishing.com/podcasting</link>
<description>Lucerne Publishing CEO Peter Bankov takes a look at the latest trends in online publications.</description>
<language>en-us</language>
<copyright>2006 Lucerne Publishing LP, LLLP. All Rights Reserved.</copyright>
<managingEditor>someone@example.com</managingEditor>
<webMaster>someone@example.com</webMaster>
<pubDate>Fri, 9 June 2006 14:00:28 EDT</pubDate>
<lastBuildDate Fri, 9 June 2006 14:00:28 EDT />
<category>News</category>
<generator>Podcaster version 1.0</generator>
<docs>https://www.lucernepublishing.com/tech/rss</docs>
<cloud />
<ttl>240</ttl>
<rating />
<textInput />
<skipHours />
<skipDays />
<image>
<url>https://www.lucernepublishing.com/images/logo.gif</url>
<title>Lucerne Publishing</title>
<link>https://www.lucernepublishing.com/community/podcasts</link>
<width>300</width>
<height>300</height>
<description>Lucerne Logo</description>
</image>
<item>
<title>The Digital Publication</title>
<link>https://www.lucernepublishing/services/podcasting/digital.publishing/audio/2006/06/digital0601.mp3</link>
<description>Online publications are rapidly changing. A publishing house CEO examines the trends of the past five years and their implications.</description>
<author>Lucerne</author>
<category>News</category>
<comments />
<enclosure url="https://www.lucernepublishing/services/podcasting/digital.publishing/audio/2006/06/digital0601.mp3" length="10329011" type="audio/mpeg" />
<guid>https://www.lucernepublishing/services/podcasting/digital.publishing/audio/2006/06/digital0601.mp3</guid>
<pubDate>Thur, 1 June 2006 14:00:28 EDT</pubDate>
<source />
</item>
</channel>
WINDOWS Media デバイス マネージャー プロパティ値への RSS チャネル要素のマッピング
次の表では、前の例の RSS チャネル要素の値が特定の Windows Media デバイス マネージャー プロパティにどのようにマップされるかについて説明します。
| Windows Media デバイス マネージャー プロパティ | 値 |
|---|---|
| g_wszWMDMAuthorDate | 2006 年 6 月 9 日 (金) 14:00:28 EDT |
| g_wszWMDMDESCRIPTION | ルツェルン出版のピーター・バンコフ最高経営責任者(CEO)は、オンライン出版物の最新動向を見ていきます。 |
| g_wszWMDMDESTINATION_URL | https://www.lucernepublishing/services/podcasting |
| g_wszWMDMEDITOR | someone@example.com |
| g_wszWMDMFileCreationDate | 2006 年 6 月 9 日 (金) 14:00:28 EDT |
| g_wszWMDMFileName | デジタル文書 |
| g_wszWMDMFileSize | 13,790 |
| g_wszWMDMFormatCode | WMDM_FORMATCODE_MEDIA_CAST |
| g_wszWMDMGENRE | ニュース |
| g_wszWMDMLAST_MODIFIED_DATE | 2006 年 6 月 9 日 (金) 14:00:28 EDT |
| g_wszWMDMLastModifiedDate | 2006 年 6 月 9 日 (金) 14:00:28 EDT |
| g_wszWMDMProviderCopyright | 2006 ルツェルンパブリッシング LP, LLLP. All Rights Reserved. |
| g_wszWMDMTimeToLive | 240 |
| g_wszWMDMTitle | デジタル文書 |
| g_wszWMDMWEBMASTER | someone@example.com |
| g_wszWMDMYear | 2006 年 6 月 9 日 (金) 14:00:28 EDT |
WINDOWS Media デバイス マネージャー プロパティ値への RSS イメージ要素のマッピング
次の表では、前の例の RSS Image 要素の値が特定の Windows Media デバイス マネージャー プロパティにどのようにマップされるかについて説明します。
| Windows Media デバイス マネージャー プロパティ | 値 |
|---|---|
| g_wszWMDMAlbumCoverFormat | WPD_OBJECT_FORMAT_GIF |
| g_wszWMDMAlbumCoverSize | 512 |
| g_wszWMDMDescription | ルツェルンのロゴ |
| g_wszWMDMDestinationURL | www.lucernepublishing.com/community/podcasts |
| g_wszWMDMHeight | 300 |
| g_wszWMDMSourceURL | https://www.lucernepublishing.com/images/logo.gif |
| g_wszWMDMTitle | ルツェルン出版 |
| g_wszWMDMWidth | 300 |
WINDOWS Media デバイス マネージャー プロパティ値への RSS 項目要素のマッピング
次の表では、前の例の RSS Item 要素の値が特定の Windows Media デバイス マネージャー プロパティにどのようにマップされるかについて説明します。
| Windows Media デバイス マネージャー プロパティ | 値 |
|---|---|
| g_wszWMDMAuthor | ルツェルン |
| g_wszWMDMAuthorDate | 2006 年 6 月 1 日(木) 14:00:28 EDT |
| g_wszWMDMDescription | オンライン文書は急速に変化しています。 出版社のCEOは、過去5年間の傾向とその影響を調べます。 |
| g_wszWMDMDestinationURL | https://www.lucernepublishing/services/podcasting/digital.publishing/audio/2006/06/digital0601.mp3 |
| g_wszWMDMDuration | 120325445 |
| g_wszWMDMFileCreationDate | 2006 年 6 月 1 日(木) 14:00:28 EDT |
| g_wszWMDMFileSize | 10329011 |
| g_wszWMDMFormatCode | WMDM_FORMATCODE_MP3 |
| g_wszWMDMGenre | ニュース |
| g_wszWMDMLastModifiedDate | 2006 年 6 月 1 日(木) 14:00:28 EDT |
| g_wszWMDMMediaGuid | https://www.lucernepublishing/services/podcasting/digital.publishing/audio/2006/06/digital0601.mp3 |
| g_wszWMDMSourceURL | https://www.lucernepublishing/services/podcasting/digital.publishing/audio/2006/06/digital0601.mp3 |
| g_wszWMDMTitle | デジタル文書 |
| g_wszWMDMYear | 2006 年 6 月 1 日(木) 14:00:28 EDT |
関連トピック