简体   繁体   English

Android - 通过HTTPS逐步下载

[英]Android - Progressive download over HTTPS

I am using following code to play a video from SDCard and HTTP links 我正在使用以下代码从SDCard和HTTP链接播放视频

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(**videoUrl**));
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);

if the videoUrl is a HTTP then video player opens immediately and video starts playing through progressive download. 如果videoUrl是HTTP,则视频播放器立即打开,视频通过渐进式下载开始播放。

But if the videoUrl is a HTTPS url, then android downloads the entire video file, and then I have to click the file in "downloads" list to play the file. 但是如果videoUrl是一个HTTPS网址,那么android下载整个视频文件,然后我必须点击“下载”列表中的文件来播放该文件。

I found that android media player doesn't support HTTPS ( http://groups.google.com/group/android-developers/browse_thread/thread/7e7003b845c3fb98 ), 我发现Android媒体播放器不支持HTTPS( http://groups.google.com/group/android-developers/browse_thread/thread/7e7003b845c3fb98 ),

so does anyone know how to progressively download HTTPS videos? 那么有谁知道如何逐步下载HTTPS视频?

Please look at this link 请看这个链接

Note: HTTPS is not supported before Android 3.1. 注意:Android 3.1之前不支持HTTPS。

Therefore, You should try again. 因此,你应该再试一次。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM