从FTP服务器上的Andr​​oid应用程序流音频文件 [英] stream audio file from FTP server to Android App

查看:115
本文介绍了从FTP服务器上的Andr​​oid应用程序流音频文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个FTP服务器设置保存在一个目录中的音频文件。我想从流服务器的音频播放我的Andr​​oid手机上,而不是下载它,并打回来的方式。此外,有可能它传输到MediaPlayer的Andr​​oid中播放?

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服务器上的Andr​​oid应用程序流音频文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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