Page 1 of 1

Give http proxy as mrl option

Posted: 06 Feb 2017 15:56
by Jo2003
I'm writing an Qt desktop application (C++) which uses libVLC to play video streams. Almost everything works really well. Thanks for this - VLC is really great!

I initialize libVLC without any proxy setting, but give the http proxy setting as part of the mrl in form :http_proxy=http://whatever.com:1234/

Should it work that way? Or must the proxy be set when initializing libVLC?

Thanks in advance,
Jörg

Re: Give http proxy as mrl option

Posted: 06 Feb 2017 18:30
by Rémi Denis-Courmont
At least on MacOS and Linux, LibVLC gets the proxy settings from the system.

Re: Give http proxy as mrl option

Posted: 07 Feb 2017 12:21
by Jo2003
Thank you very much for your fast reply.

On the command line help I read that the environment variable is used if the option is not set.

I tried the command line option --http_proxy when starting VLC and it worked well. But when giving it as an mrl option (:http_proxy) to the media's mrl it will bypass the proxy.

I'll try to give the proxy option to libvlc when initializing it.

I will tell if this works.

Best regards,
Jörg

Re: Give http proxy as mrl option

Posted: 14 Feb 2017 15:45
by Jo2003
Sorry for confusion. I made a typo ... it works well. The correct option is named :http-proxy or --http-poxy but NOT http_proxy ...