为 Amazon S3 服务器上托管的 MP3 生成 iPod 和 Zune 兼容的 RSS 源

发布于 2024-07-24 05:08:07 字数 160 浏览 2 评论 0原文

我有一些托管在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

凉城 2024-07-31 05:08:07

基本上只需构建 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文