Page 1 of 1

VLC media player in command line URL HTTP ?

Posted: Monday 22 June 2020 22:26
by cyberbob69
Hello,

I just tested this to change the volume:

Code: Select all

http://192.168.1.1:8080/requests/status.json?command=volume&val=200
with the ip where vlc is executed, and val of value 0 to 256 corresponds to the volume from 0 to 100%

On the other hand during the first connection, VLC requests a password (without user name), to define in advanced preference / main interface / Lua / Lua by HTTP
So there is a window that opens to authenticate and put the password in it, of course you would have to put this password in the URL link, I tried this syntax but it does not work:

Code: Select all

http://[email protected]:8080/requests/status.json?command=volume&val=200
Do you have any idea why ??

Re: VLC media player in command line URL HTTP ?

Posted: Tuesday 23 June 2020 20:14
by erem
just a guess, but the http syntax is

Code: Select all

http://username:[email protected]/
if you only need the password send, would it be

Code: Select all

http://:[email protected]:8080/requests/status.json?command=volume&val=200
-------^
just my $.02

Re: VLC media player in command line URL HTTP ?

Posted: Tuesday 23 June 2020 23:54
by cyberbob69
correct syntax :

Code: Select all

os.execute('curl -u :password "http://192.168.1.5:8080/requests/status.xml?command=volume&val=256" ')
Request http for VLC :

https://wiki.videolan.org/VLC_HTTP_requests/