从FTP服务器上的Android应用程序流音频文件 [英] stream audio file from FTP server to Android App
问题描述
我有一个FTP服务器设置保存在一个目录中的音频文件。我想从流服务器的音频播放我的Android手机上,而不是下载它,并打回来的方式。此外,有可能它传输到MediaPlayer的Android中播放?
I have a FTP server setup that holds audio files in one of its directories. I would like to stream the audio from the server and play it on my Android phone instead of downloading it and playing it back that way. Also, is it possible to stream it to the MediaPlayer in Android for playback?
推荐答案
FTP协议不支持流式音频或视频。
The FTP protocol does not support streaming audio or video.
不过,您可以设置在同一个盒子,将替你做流媒体服务器。我用 VLC 的视频流,它是pretty容易建立。应适用于音频过。
However, you could set up a streaming server on the same box that will do it for you. I've used VLC to stream video and it's pretty easy to set up. Should work for audio too.
http://www.videolan.org/doc/streaming- HOWTO / EN / index.html的
这篇关于从FTP服务器上的Android应用程序流音频文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!