【问题标题】:MPMoviePlayer: is it possible to set a header to the streaming request?MPMoviePlayer:是否可以为流媒体请求设置标头?
【发布时间】:2012-08-06 06:30:52
【问题描述】:

在我的一个项目中,服务器需要一个 cookie(我从登录请求中获得)来流式传输视频,但我没有找到任何方法将标头与 MPMoviePlayer/MPMoviePlayerController 中的请求相关联,有谁知道我应该怎么做做什么?

谢谢!

【问题讨论】:

    标签: ios http-headers streaming mpmovieplayer


    【解决方案1】:

    通过注册一个自定义的NSURLProtocol 处理程序类,您可以以编程方式处理播放器发出的请求。

    如需了解更多信息,请参阅this post about NSURLProtocolthis articlethe Apple HLS doc's

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-02-21
      • 2012-11-06
      • 2016-03-18
      • 2013-01-09
      • 2019-10-13
      • 1970-01-01
      相关资源
      最近更新 更多