如何在android中从服务器下载视频
我正在做一个应用程序,用于从服务器下载视频并播放从 SD 卡下载的视频。
我在网站上有一个 .MP4 格式的视频文件,视频是从服务器下载的,应该保存在 SD 卡中。
我的问题是如何从服务器下载视频。请给我一些想法和例子。
请帮我。
i am doing app for downloading video from server and play the downloaded video from sdcard.
I have a video file on a website in .MP4 format and video downloaded from server and should save in sdcard.
my problem is how to download video from server. please give some ideas and example to me.
please help me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Android 自带了 HTTPClient。您应该能够从 HTTPClient 网站 获取所需的所有信息。
示例:
http://hc.apache.org/httpcomponents-client-ga/examples.html
Android API 文档:http://developer.android.com/reference/org/apache/http/client/package-summary.html
Android comes with HTTPClient. You should be able to get all the info you need from the HTTPClient website.
Examples:
http://hc.apache.org/httpcomponents-client-ga/examples.html
Android API Docs: http://developer.android.com/reference/org/apache/http/client/package-summary.html