如何将请求标头添加到vlcMobilePlayer?

时间:2019-03-27 07:44:03

标签: ios video-streaming vlc

我正在使用 MobileVLCKit 播放流视频,并且可以播放带有URL的视频。
但是,如何播放带有特殊标题的视频?
就像发送 HTTP请求

1 个答案:

答案 0 :(得分:0)

来自https://wiki.videolan.org/VLC_command-line_help/

HTTPS input (access)
      --http-continuous, --no-http-continuous 
                                 Continuous stream
                                 (default disabled)
          Keep reading a resource that keeps being updated.
      --http-forward-cookies, --no-http-forward-cookies 
                                 Cookies forwarding
                                 (default enabled)
          Forward cookies across HTTP redirections.
      --http-referrer=<string>   Referrer
          Provide the referral URL, i.e. HTTP "Referer" (sic).
      --http-user-agent=<string> User agent
          Override the name and version of the application as provided to the
          HTTP server, i.e. the HTTP "User-Agent". Name and version must be
          separated by a forward slash, e.g. "FooBar/1.2.3".

调用libvlc_new的MobileVLCKit等效项时,可以通过MobileVLCKit将这些CLI参数提供给libvlc。