Android - 通过 HTTPS 渐进式下载
我正在使用以下代码播放来自 SDCard 和 HTTP 链接的视频,
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(**videoUrl**));
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
如果 videoUrl 是 HTTP,则视频播放器立即打开,视频开始通过渐进式下载播放。
但如果 videoUrl 是 HTTPS url,那么 android 会下载整个视频文件,然后我必须单击“下载”列表中的文件才能播放该文件。
我发现 Android 媒体播放器不支持 HTTPS (http://groups .google.com/group/android-developers/browse_thread/thread/7e7003b845c3fb98),
所以有人知道如何逐步下载 HTTPS 视频?
I am using following code to play a video from SDCard and HTTP links
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.
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.
I found that android media player doesn't support HTTPS (http://groups.google.com/group/android-developers/browse_thread/thread/7e7003b845c3fb98),
so does anyone know how to progressively download HTTPS videos?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请查看此链接
因此,您应该再试一次。
Please look at this link
Therefore, You should try again.