谁能告诉我如何在 Android 上从 HTTPS(注意 S)视频源进行流式传输
谁能告诉我如何在 Android 上从 HTTPS(注意 S)视频源流式传输?
VideoView mVideoView = (VideoView) findViewById(R.id.videoplayback_videoView);
...
Uri videouri = Uri.parse("https://myvideo.mp4");
mVideoView.setVideoURI(videouri);
mVideoView.start();
这种方法行不通。如果我删除“S”它就可以了。
Can anyone tell me how to Stream from a HTTPS (note the S) video source on Android?!
VideoView mVideoView = (VideoView) findViewById(R.id.videoplayback_videoView);
...
Uri videouri = Uri.parse("https://myvideo.mp4");
mVideoView.setVideoURI(videouri);
mVideoView.start();
This type of approach does not work. If i remove the "S" it works.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
很抱歉,Android Media Framework 目前支持的数据源不包括 HTTPS。这就是原因,因为它使用 HTTP 工作,但不使用 HTTPS。
从 Android 3.0 开始,我想它也将包含在 Android 2.4 中,将会有一个 DRM 框架,允许您包含自己的 DRM 插件来保护您的流媒体内容。但你需要等待......
I am sorry but the current data sources supported by the Android Media Framework don't include HTTPS. That is the reason because it is working using HTTP but not with HTTPS.
From Android 3.0, and I suppose it will also be included in Android 2.4, there will be a DRM framework that will allow you to include your own DRM plugins to protect your streaming content. But you need to wait for it....
在 Android 3.1 之前,似乎不支持媒体的 HTTPS - http://developer.android .com/guide/appendix/media-formats.html
我想我设法以某种方式使其在几个 Android 2.3 设备上运行,但前提是 HTTPS 视频是从主机 HTML 所在的同一服务器提供的(也许浏览器以某种方式重用了 SSL 连接)。
HTTPS for media seems to be not supported until Android 3.1 - http://developer.android.com/guide/appendix/media-formats.html
I think I managed to somehow make it work on a couple of Android 2.3 devices, but only when HTTPS video was served from the same server on which the host HTML resided (maybe browser was somehow reusing the SSL connection).