如何在iOS上通过安全连接流式传输视频 [英] How to stream video over secure connection on iOS

查看:236
本文介绍了如何在iOS上通过安全连接流式传输视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以从本地资源(在设备上)播放视频. 我可以从不受保护的互联网流式传输视频. 我无法从公司内部网流(内部或外部)

I can play a video from a local resource (on the device). I can stream a video from the unprotected internet. I can't stream from the company intranet (either from internal or externally)

典型的安全公司网络.视频存储在SharePoint 2007列表中(但是我有视频文件的URL).

Typical secure company network. Videos are stored in SharePoint 2007 lists (but I have url to the video file).

我尝试过:

  • MPMoviePlayerController
  • MPMoviePlayerViewController
  • UIViewView(使用<video>标签和视频URL动态创建html)
  • MPMoviePlayerController
  • MPMoviePlayerViewController
  • UIViewView (creating html on fly using the <video> tag and video url)

,我什么也无法工作.哎呀,我什至无法使它直接进入iPad上Safari中的链接.我唯一没有尝试做的事情就是将其下载为文件,然后在本地播放.由于存在许多可用性问题,因此这不是首选方法.

and I can't get anything to work. Heck, I can't even get it to work going directly to the link in Safari on the iPad. The only thing I haven't tried doing is downloading it as a file then playing locally. Due to a host of usability issue this would not be a preferred option.

推荐答案

有2个问题.

  1. MPMoviePlayerController不支持NSURLConnection中存在的所有质询身份验证.解决方案是仅在安全区域内的某个位置执行虚拟" NSURLConnection,使其处理所有挑战并将其设置为存储会话信息.从此开始,MPMoviePlayerController或其他不支持SSL请求前后的连接将使用现有会话.
  2. 必须在服务器上安装有效的中间证书.我从来没有想过的东西.在安全连接下的指南之一中,它只是一小部分.
  1. MPMoviePlayerController doesn't support all the challenge authentication which exists in NSURLConnection. The solution is to just do a "dummy" NSURLConnection somewhere inside your secure area, have it handle all the challenges and set it to store the information for the session. From here on out, MPMoviePlayerController or other connections which don't support the ins and outs of SSL requests will use the existing session.
  2. A valid intermediate certificate had to be installed on the server. Something I never would have figured out myself. It exists as a small item in one of the guides under Secure connections.

这篇关于如何在iOS上通过安全连接流式传输视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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