right, i get that - what i am seeking, is for VLC to have its user agent and referrer set upon execution of the program and not having to set the user agent and referrer every time i enter an MRL into VLC - this is outlined in the VLC commands wiki, that you should be able to do this and at one point, it *did* work.
i am not able to do this now though i was able to do this previously.
this is akin to manually setting the user agent in firefox - it stays this way until you change it.
how about adding a text field entry option in the settings GUI ?
one text field entry as "user agent" and the next text field entry as "referrer".
these fields can be left blank for the default action or entered for a custom action.
if this was available, it would make things super easy for me and anyone else who uses VLC to watch live streaming videos where any user agent other than accepted web browsers and referrers from the same domain, are blocked.
the specific domain i am trying to use VLC on, blocks any user agent other than well known web browser agents AND blocks referrers from any domain other than its own, so both must be used in order to stream content from that domain - because of two domains being used, stream content domain is stream-cdn.vaughnsoft.net and the referrer domain is vaughn.live
this can be reproduced on windows 10/11:
change the desktop shortcut properties to (again, it does not matter if "--" or ":" is used, you get the same result):
Code: Select all
"C:\Program Files\VideoLAN\VLC\vlc.exe" :http-user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0" :http-referrer="https://vaughn.live"
open vlc, select messages window to verbosity 2, open network stream and enter this:
Code: Select all
https://stream-cdn.vaughnsoft.net/play/live_b_o_t.flv
observe the messages window and see that the user agent is not as specified as intended but the referrer is specified as intended.
the *only* way i can get this to work as intended is by making a playlist (or manually entering these options every time under "edit options" for the MRL):
http://scpdny.com/test.xspf
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<playlist xmlns="http://xspf.org/ns/0/" xmlns:vlc="http://www.videolan.org/vlc/playlist/ns/0/" version="1">
<title>Playlist</title>
<trackList>
<track>
<location>https://stream-cdn.vaughnsoft.net/play/live_b_o_t.flv</location>
<extension application="http://www.videolan.org/vlc/playlist/0">
<vlc:id>0</vlc:id>
<vlc:option>network-caching=1000</vlc:option>
<vlc:option>http-user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0"</vlc:option>
<vlc:option>http-referrer="https://vaughn.live"</vlc:option>
</extension>
</track>
</trackList>
<extension application="http://www.videolan.org/vlc/playlist/0">
<vlc:node title="vaughn.xspf">
<vlc:item tid="0"/>
</vlc:node>
</extension>
</playlist>
if i want to add another stream from this domain to this playlist, i *have* to add the following every single time with each new MRL:
Code: Select all
:http-user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0" :http-referrer="https://vaughn.live"
so i have resulted to using a notepad file with this option content to copy/paste it into "edit options" for the MRL (why should i have to go through these steps every time, to add a stream to the playlist or to play a stream from this domain ?)