<div dir="ltr">what i recomand you is to write a script or program that run this pac file and then it run vlc , you are not forced to add a feature to vlc , and recompile it etc. Just run a script that knwo how to get this proxy and run vlc with this proxy<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 6, 2015 at 4:46 PM, SEM-Gelibredu (EDU) <span dir="ltr"><<a href="mailto:gelibredu@edu.ge.ch" target="_blank">gelibredu@edu.ge.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everyone, and happy new year 2015 :-)<br>
<br>
I come back with my question, which did not receive an answer (yet ;-)<br>
We're still trying to find a solution to use a text file (in our case named "proxy.pac"). This file returns proxy's URL (<a href="http://proxygeadm.etat-ge.ch:3128" target="_blank">proxygeadm.etat-ge.ch:3128</a>)<br>
<br>
With Windows, when typing:<br>
"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" <a href="http://www.rts.ch/option-musique/programmes/agenda-des-spectacles/podcast/?flux=rss" target="_blank">http://www.rts.ch/option-musique/programmes/agenda-des-spectacles/podcast/?flux=rss</a> --http-proxy=<a href="http://MYNAME:MYPASSWORD@proxygeadm.etat-ge.ch:3128" target="_blank">MYNAME:MYPASSWORD@proxygeadm.etat-ge.ch:3128</a><br>
<br>
It works.<br>
<br>
So we need to find a solution using a file, which holds dynamically the MYNAME and MYPASSWORD (of the Windows session), via Microsoft NTLM or KERBEROS.<br>
<br>
As the attached screenshot illustrates, Mozilla Firerox can do it, so the question is: how to have the same with VLC?<br>
<br>
Is there any option to have this issue solved?<br>
<br>
Thanx in advance<br>
<br>
Best regards<br>
<span class=""><br>
<br>
________________________________<br>
<br>
<br>
Cyril Roiron<br>
<br>
Chef de projet "Standards Ouverts et Logiciels Libres"<br>
<br>
<br>
<br>
REPUBLIQUE ET CANTON DE GENEVE<br>
<br>
Département de l'instruction publique, de la culture et du sport<br>
<br>
Service écoles-médias (SEM)<br>
<br>
Bureau 155, Rue des Gazomètres 5 - 1205 Genève<br>
<br>
Courrier : Case postale 241 - 1211<br>
<br>
Tél. +41 (0)22 388 64 53 - Fax +41 (0)22 388 63 01<br>
<br>
<a href="http://twitter.com/#!/gelibredu" target="_blank">http://twitter.com/#!/gelibredu</a><br>
<a href="http://icp.ge.ch/sem/gelibredu/" target="_blank">http://icp.ge.ch/sem/gelibredu/</a><br>
<br>
<br>
-----Message d'origine-----<br>
</span>De : vlc-devel [mailto:<a href="mailto:vlc-devel-bounces@videolan.org">vlc-devel-bounces@videolan.org</a>] De la part de SEM-Gelibredu (EDU)<br>
Envoyé : jeudi, 4. décembre 2014 09:21<br>
À : 'Mailing list for VLC media player developers'<br>
<div class="HOEnZb"><div class="h5">Objet : Re: [vlc-devel] VLC module?<br>
<br>
Hello<br>
<br>
Here is what I'm talking about:<br>
<br>
The proxy.pac script file (simplified/anonimized below) gets the name of the proxy server, then the concerned application must read from the operating system (Windows 7 in this case) the authentication parameters (through ActiveDirectories information, via Microsoft NTLM ou KERBEROS)<br>
We know it's possible to have the proxy parameters in VLC, but it's hardcoded; this script enables dynamic flexibility (end user does not have to type again the password when changed in the AD)<br>
<br>
-------FILE proxy.pac -----------<br>
<br>
//Etat de Geneve - IP station = 160.53.180.20 (2687874324) - proxy à utiliser : <a href="http://proxygeadm.etat-ge.ch:3128" target="_blank">proxygeadm.etat-ge.ch:3128</a> //script demandé : <a href="http://proxy.etat-ge.ch" target="_blank">proxy.etat-ge.ch</a> //Copyright (c) 1997 Microsoft Corporation BackupRoute=""; UseDirectForLocal=true; function MakeIPs(){ this[0]="10.0.0.0"; this[1]="255.0.0.0"; this[2]="160.53.0.0"; this[3]="255.255.0.0"; this[4]="255.255.255.0"; cDirectIPs=4;<br>
<br>
}<br>
DirectIPs=new MakeIPs();<br>
<br>
<br>
function MakeNames(){<br>
this[0]=".<a href="http://geneve.ch" target="_blank">geneve.ch</a>";<br>
this[1]=".<a href="http://ge.ch" target="_blank">ge.ch</a>";<br>
this[2]=".<a href="http://etat-ge.ch" target="_blank">etat-ge.ch</a>";<br>
}<br>
DirectNames=new MakeNames();<br>
cDirectNames=2;<br>
<br>
function IsHostAnIP(testHost) {<br>
var validIpAddressRegex = "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$";<br>
var expression = new RegExp(validIpAddressRegex,"i");<br>
return expression.test(testHost);<br>
}<br>
<br>
function FindProxyForURL(url, host){<br>
var urlhash, ibest, bestscore, list, i, j; if (url.substring(0, 7) == "gopher:") {<br>
return "PROXY localhost:1";<br>
}<br>
<br>
if (UseDirectForLocal && isPlainHostName(host))<br>
return "DIRECT";<br>
for (i = 0; i < cDirectNames; i++)<br>
if (dnsDomainIs(host, DirectNames[i]))<br>
return "DIRECT";<br>
if (IsHostAnIP(host))<br>
{<br>
for (i = 0; i < cDirectIPs; i += 2)<br>
if (isInNet(host, DirectIPs[i], DirectIPs[i+1]))<br>
return "DIRECT";<br>
return "PROXY <a href="http://proxygeadm.etat-ge.ch:3128" target="_blank">proxygeadm.etat-ge.ch:3128</a>"; }<br>
<br>
<br>
<br>
<br>
Thanx in advance for advises<br>
<br>
<br>
<br>
________________________________<br>
<br>
<br>
Cyril Roiron<br>
<br>
Chef de projet "Standards Ouverts et Logiciels Libres"<br>
<br>
<br>
<br>
REPUBLIQUE ET CANTON DE GENEVE<br>
<br>
Département de l'instruction publique, de la culture et du sport<br>
<br>
Service écoles-médias (SEM)<br>
<br>
Bureau 155, Rue des Gazomètres 5 - 1205 Genève<br>
<br>
Courrier : Case postale 241 - 1211<br>
<br>
Tél. +41 (0)22 388 64 53 - Fax +41 (0)22 388 63 01<br>
<br>
<a href="http://twitter.com/#!/gelibredu" target="_blank">http://twitter.com/#!/gelibredu</a><br>
<a href="http://icp.ge.ch/sem/gelibredu/" target="_blank">http://icp.ge.ch/sem/gelibredu/</a><br>
<br>
<br>
-----Message d'origine-----<br>
De : vlc-devel [mailto:<a href="mailto:vlc-devel-bounces@videolan.org">vlc-devel-bounces@videolan.org</a>] De la part de Jean-Baptiste Kempf<br>
Envoyé : lundi, 1. décembre 2014 17:57<br>
À : <a href="mailto:vlc-devel@videolan.org">vlc-devel@videolan.org</a><br>
Objet : Re: [vlc-devel] VLC module?<br>
<br>
Le 01/12/2014 16:32, SEM-Gelibredu (EDU) a écrit :<br>
> We use proxy configured internet access, which reads parameters through<br>
> a ".pac" file.<br>
<br>
Please share a sample of this pac file.<br>
<br>
<br>
<br>
--<br>
Jean-Baptiste Kempf<br>
<a href="http://www.jbkempf.com/" target="_blank">http://www.jbkempf.com/</a> - <a href="tel:%2B33%20672%20704%20734" value="+33672704734">+33 672 704 734</a><br>
Sent from my Electronic Device<br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="https://mailman.videolan.org/listinfo/vlc-devel" target="_blank">https://mailman.videolan.org/listinfo/vlc-devel</a><br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="https://mailman.videolan.org/listinfo/vlc-devel" target="_blank">https://mailman.videolan.org/listinfo/vlc-devel</a><br>
</div></div><br>_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="https://mailman.videolan.org/listinfo/vlc-devel" target="_blank">https://mailman.videolan.org/listinfo/vlc-devel</a><br>
<br></blockquote></div><br></div>