Search found 5 matches

Go to advanced search

by miladia
05 Jun 2013 15:05
Forum: Scripting VLC in lua
Topic: User-agent in http header
Replies: 2
Views: 4406

Re: User-agent in http header

Anyone ? :(
by miladia
03 Jun 2013 15:55
Forum: Scripting VLC in lua
Topic: User-agent in http header
Replies: 2
Views: 4406

User-agent in http header

Hi, I am trying to change HTTP header, particularly user-agent from default to something else, since the server redirect to unknown adress if VLC player is detected. I wrote the following script, but it does not work in my case, so please help, I dont know where the problem is. -- Probe function. fu...
by miladia
25 May 2013 14:37
Forum: General VLC media player Troubleshooting
Topic: Change GET / HTTP/1.1 header
Replies: 4
Views: 3678

Re: Change GET / HTTP/1.1 header

Working solution. I've tried to start the script for every http stream opened in VLC. So, therefore I modified the script and probe function to be always true. -- Probe function. function probe() return vlc.access == "http" and string.match( "test", "test" ) -- return t...
by miladia
25 May 2013 01:09
Forum: General VLC media player Troubleshooting
Topic: Change GET / HTTP/1.1 header
Replies: 4
Views: 3678

Re: Change GET / HTTP/1.1 header

Thank you, I have tried, and modify the script: function get_prefres() local prefres = -1 if vlc.var and vlc.var.inherit then prefres = vlc.var.inherit(nil, "preferred-resolution") if prefres == nil then prefres = -1 end end return prefres end -- Probe function. function probe() return vlc...
by miladia
24 May 2013 15:21
Forum: General VLC media player Troubleshooting
Topic: Change GET / HTTP/1.1 header
Replies: 4
Views: 3678

Change GET / HTTP/1.1 header

Hi,

Is there a way to change GET http header on vlc when you want to play http streams?

GET / HTTP/1.1
Host:
User-Agent: VLC/2.0.2 LibVLC/2.0.2
Range: bytes=0-
Connection: close
Icy-MetaData: 1

I think this is default.

Go to advanced search