作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 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 参数。
关于ios - 如何给vlcMobilePlayer添加请求头?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55372079/
我是一名优秀的程序员,十分优秀!