为 Amazon S3 服务器上托管的 MP3 生成 iPod 和 Zune 兼容的 RSS 源
我有一些托管在 Amazon S3 服务器上的 MP3 录音。 我想将这些录音(MP3 文件)作为 RSS 源公开给用户,以便他们可以使用 iPod (Itunes) 或 Zune 下载它们。
所有 MP3 都托管在 Amazon S3 服务器上,我还想统计哪个播客被下载了多少次。
I have few MP3 recordings which are hosted on the Amazon S3 server. I want to expose those recordings (MP3 files) to the users as RSS feeds so that they can download them using their IPod (Itunes) or Zune.
All the MP3's are hosted on Amazon S3 server and I would also like to have a stat that which podcast is downloaded how many times.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
基本上只需构建 RSS 文件并将其托管在 HTTP 服务器上即可。 然后,您只需向用户提供该提要的 URL,他们就可以在 iTunes 中订阅。 以下是 iTunes RSS 技术规范的链接: iTunes Podcast RSS 技术规范 该页面上还有一个示例提要可以帮助您入门。
存储文件实际位置的元素是
enclosure
元素。 它有一个 URL 属性,需要设置为 MP3 的 URL。示例:
所有附件元素都会只需指向 Amazon S3 中的正确位置即可。
It's basically just a matter of building the RSS file and hosting it on an HTTP server. Then you just give users the URL to that feed and they can subsribe in iTunes. Here is a link to the iTunes RSS technical spec: iTunes Podcast RSS Technical Spec There's also an example feed on that page to get you started.
The element that stores the actual location of the files is the
enclosure
element. It has a URL attribute which needs to be set to the URL of the MP3.Example:
<enclosure url="http://example.com/podcasts/everything AllAboutEverythingEpisode2.mp3" length="5650889" type="audio/mpeg"/>
All your enclosure elements will just need to point to the proper place in Amazon S3.