从 Android 上的 M3U 流式传输
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3648758/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Streaming from M3U on Android
提问by jocull
I am working with Android OS to try to stream from an M3U. I don't see why this is a big deal on Android, but for some reason it is. The M3U structure is simple, it's essentially a list of URLs to external MP3 files. However, when you click the M3U in the browser, it tries to launch and then tells me that it's an unsupported file type.
我正在使用 Android 操作系统尝试从 M3U 进行流式传输。我不明白为什么这对 Android 来说很重要,但出于某种原因。M3U 结构很简单,它本质上是一个指向外部 MP3 文件的 URL 列表。但是,当您在浏览器中单击 M3U 时,它会尝试启动,然后告诉我它是不受支持的文件类型。
MP3 is documented as being a supported streaming protocol: http://developer.android.com/guide/appendix/media-formats.html
MP3 被记录为支持的流媒体协议:http: //developer.android.com/guide/appendix/media-formats.html
This works flawlessly on the iPhone. I'd really like to believe that "Droid does" (as they advertise) and I don't want to hate on it too hard, but why isn't a simple M3U even supported?
这在 iPhone 上可以完美运行。我真的很想相信“Droid 确实”(正如他们宣传的那样)并且我不想太讨厌它,但是为什么甚至不支持简单的 M3U?
Is there an external app that supports these that has to be installed first?
是否有支持这些必须先安装的外部应用程序?
Thanks to anyone who can shed a little light on this subject. All I have to test with is the emulators currently, but my friends with devices can confirm that this is not working.
感谢任何可以对这个主题有所了解的人。我目前只需要测试模拟器,但我的设备朋友可以确认这不起作用。
回答by Slavik
That is known issue. Currently (that's 3.0.1), Android doesn't support m3u with HTTP links.
那是已知问题。目前(即 3.0.1),Android 不支持带有 HTTP 链接的 m3u。
Please go to Android issue list and vote for issue, so it can be fixed.
请前往 Android 问题列表并为问题投票,以便修复。
http://code.google.com/p/android/issues/detail?id=7028
http://code.google.com/p/android/issues/detail?id=7028
And yes, free "Just Playlists" app from Market hepls to tackle the issue.
是的,来自 Market 的免费“ Just Playlists”应用程序可以帮助解决这个问题。
回答by Paul Gregtheitroade
While MP3 is supported the playlist file M3U is not. You may be able to find a 3rd party player that supports this but the base OS / software doesn't.
虽然支持 MP3,但不支持播放列表文件 M3U。您可以找到支持此功能的 3rd 方播放器,但基本操作系统 / 软件不支持。
回答by Tom Westmacott
- Download 'Just Playlists' from the Market (free version is fine)
- On your PC, in Winamp, add the streaming M3U URL to a new playlist. Save this playlist itself as an M3U file on the PC.
- Transfer the new M3U file to the phone's SD card inside the /justplaylists/playlists/ folder
- Start Just Playlists, press the left hand 'playlist' button in the app, and select the transferred M3U file.
- 从市场下载“Just Playlists”(免费版很好)
- 在您的 PC 上,在 Winamp 中,将流式 M3U URL 添加到新的播放列表。将此播放列表本身另存为 PC 上的 M3U 文件。
- 将新的 M3U 文件传输到 /justplaylists/playlists/ 文件夹内的手机 SD 卡
- 启动 Just Playlists,按应用程序左侧的“播放列表”按钮,然后选择传输的 M3U 文件。
回答by user2971883
Just Playlists works for me too. This is how I got it to open an M3U link from a website without downloading it first:
- Install Just Playlists.
- Open it and adjust the preferences.
- Open a browser and click on an M3U link in a website.
- You will be presented with a choice of apps to open the link in. Conspicuously Just Playlists is missing. I chose Chrome.
- You will be again presented with a choice of apps. This time Just Playlists is listed. Tap it.
- Just Playlists will open and start playing the playlist. To see the entire playlist and choose a different title, tap Settings, More, Now playing.
Just Playlists 也适用于我。这就是我如何在不先下载的情况下从网站打开 M3U 链接的方法:
- 安装 Just Playlists。
- 打开它并调整首选项。
- 打开浏览器并单击网站中的 M3U 链接。
- 您将看到可供选择的应用程序来打开链接。显然缺少播放列表。我选择了铬。
- 您将再次看到可供选择的应用程序。这次只列出了播放列表。点击它。
- 仅播放列表将打开并开始播放播放列表。要查看整个播放列表并选择不同的标题,请依次点按“设置”、“更多”、“正在播放”。
回答by bobdc
VLC worked nicely for me. After I installed it on my phone and then clicked on an m3u link in chrome, VLC was presented as one of the potential players for the m3u, and it worked just fine.
VLC 对我来说效果很好。在我将它安装到我的手机上,然后点击 chrome 中的 m3u 链接后,VLC 被显示为 m3u 的潜在播放器之一,它运行得很好。