Windows Phone 8-流播Podcast MP3文件 [英] Windows Phone 8 - Streaming a Podcast MP3 file

查看:96
本文介绍了Windows Phone 8-流播Podcast MP3文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个应用程序,该应用程序读取单个播客feed(对于该应用程序而言是唯一的),并在LongListSelector中显示剧集标题.我可以通过解析RSS文件来获取每个剧集的MP3 URI.我想添加一些功能,当用户点击列表中的一个项目时,该URI会传递到音频流媒体并像音乐文件一样播放.

I'm creating an app that reads a single podcast feed (unique to the app) and shows the episode titles in a LongListSelector. I can obtain the MP3 URI for each episode by parsing the RSS file. I'd like to add functionality that, when the user taps an item in the list, the URI is passed to an audio streamer and played like a music file.

我在如何为Windows Phone播放背景音频,这将我指向用于流音频的项目模板.

I saw a tutorial on How to play background audio for Windows Phone, which points me to a project template for streaming audio.

我只是想知道,是否仍然需要遵循这些步骤并创建一个单独的项目,或者Windows Phone 8中是否存在内置API调用,我可以将其传递给URI并使其自动流传输?

I'm just wondering, is it still necessary to follow those steps and create a separate project, or is there a built-in API call in Windows Phone 8 that I can just pass my URI to and have it stream automatically?

推荐答案

是的,如果您需要使用BackgroungAudioPlayer,则有必要为AudioPlayer创建另一个项目并将其引用添加到您的项目中.

Yes,if you need to use BackgroungAudioPlayer, it is necessary to create another project for AudioPlayer and add reference of it to your project.

通过MediaPlayer,您可以播放来自媒体库或IsolatedStorage的文件.

Through MediaPlayer you can play files from medialibrary or IsolatedStorage.

因此,对您来说,有必要执行这些步骤.希望这会有所帮助.

So,for you it is necessary to follow those steps.Hope this helps.

这篇关于Windows Phone 8-流播Podcast MP3文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆