我怎么能起到MP3未经网址下载? [英] How can I play a mp3 without download from the url?
问题描述
我想开发如下,但我没有找到很好的例子:
I want to develop as follows but I did not find good example:
我想无需下载一个MP3编码在URL中的发挥。 除非用户停止它的MP3应该在后台播放。 我想我的多任务处理。
I want to play without having to download an mp3 encoding in the url. Unless the user stops it the mp3 should play in the background. I guess I do multitasking.
有一个实例文档或任何建议,请。 谢谢你。
Is there an example document or any advice please. Thanks.
推荐答案
看看这两个教程,在这些的.mp3文件的播放,通过网页URL,
Look at these two tutorials, In these the .mp3 files are playing through web url,
<一个href="http://www.hrupin.com/2011/02/example-of-streaming-mp3-mediafile-with-android-mediaplayer-class">Example从URL流媒体文件的MP3与Android的MediaPlayer类的
从网址播放MP3文件
如果你想在后台,我认为你必须使用服务和AIDL它播放.MP3文件还,
Also if you want to play .mp3 file in background I think you have to use Service and AIDL for it,
看一下基本的Android音乐播放器演示 MusicDroid - 音频播放第二部分该描述了如何使用服务和AIDL你的音乐播放器。
Look at basic Android-Music Player demo MusicDroid - Audio Player Part II it describe how to use Service and AIDl for your Audio Player.
谢谢..
这篇关于我怎么能起到MP3未经网址下载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!