我正在使用MobileVLCKit播放流媒体视频,我可以用URL播放视频。 但是,如何使用一些特殊的标题播放视频? 就像发送HTTP请求一样。
来自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向libvlc提供这些CLI args。