Give http proxy as mrl option

This forum is about all development around libVLC.
Jo2003
Blank Cone
Blank Cone
Posts: 67
Joined: 08 Feb 2010 13:29

Give http proxy as mrl option

Postby Jo2003 » 06 Feb 2017 15:56

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Give http proxy as mrl option

Postby Rémi Denis-Courmont » 06 Feb 2017 18:30

At least on MacOS and Linux, LibVLC gets the proxy settings from the system.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Jo2003
Blank Cone
Blank Cone
Posts: 67
Joined: 08 Feb 2010 13:29

Re: Give http proxy as mrl option

Postby Jo2003 » 07 Feb 2017 12:21

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

Jo2003
Blank Cone
Blank Cone
Posts: 67
Joined: 08 Feb 2010 13:29

Re: Give http proxy as mrl option

Postby Jo2003 » 14 Feb 2017 15:45

Sorry for confusion. I made a typo ... it works well. The correct option is named :http-proxy or --http-poxy but NOT http_proxy ...


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 39 guests