[vlc-devel] VLC module?

SEM-Gelibredu (EDU) gelibredu at edu.ge.ch
Tue Jan 6 15:46:44 CET 2015


Hello everyone, and happy new year 2015  :-)

I come back with my question, which did not receive an answer (yet ;-)
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 (proxygeadm.etat-ge.ch:3128)

With Windows, when typing: 
"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe"  http://www.rts.ch/option-musique/programmes/agenda-des-spectacles/podcast/?flux=rss  --http-proxy=MYNAME:MYPASSWORD at proxygeadm.etat-ge.ch:3128

It works. 

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.

As the attached screenshot illustrates, Mozilla Firerox can do it, so the question is: how to have the same with VLC?

Is there any option to have this issue solved?

Thanx in advance

Best regards


________________________________


Cyril Roiron 

Chef de projet "Standards Ouverts et Logiciels Libres"

 

REPUBLIQUE ET CANTON DE GENEVE

Département de l'instruction publique, de la culture et du sport 

Service écoles-médias (SEM)

Bureau 155, Rue des Gazomètres 5 - 1205 Genève

Courrier : Case postale 241 - 1211 

Tél. +41 (0)22 388 64 53 - Fax +41 (0)22 388 63 01

http://twitter.com/#!/gelibredu
http://icp.ge.ch/sem/gelibredu/

 
-----Message d'origine-----
De : vlc-devel [mailto:vlc-devel-bounces at videolan.org] De la part de SEM-Gelibredu (EDU)
Envoyé : jeudi, 4. décembre 2014 09:21
À : 'Mailing list for VLC media player developers'
Objet : Re: [vlc-devel] VLC module?

Hello

Here is what I'm talking about: 

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)
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)

-------FILE proxy.pac -----------

//Etat de Geneve - IP station = 160.53.180.20 (2687874324) - proxy à utiliser : proxygeadm.etat-ge.ch:3128 //script demandé : proxy.etat-ge.ch //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;

}
DirectIPs=new MakeIPs();


function MakeNames(){
this[0]=".geneve.ch";
this[1]=".ge.ch";
this[2]=".etat-ge.ch";
}
DirectNames=new MakeNames();
cDirectNames=2;

function IsHostAnIP(testHost) {
  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])$";
  var expression = new RegExp(validIpAddressRegex,"i");
  return expression.test(testHost);
}

function FindProxyForURL(url, host){
 var urlhash, ibest, bestscore, list, i, j;  if (url.substring(0, 7) == "gopher:") {
    return "PROXY localhost:1";
 }

 if (UseDirectForLocal && isPlainHostName(host))
    return "DIRECT";
 for (i = 0; i < cDirectNames; i++)
    if (dnsDomainIs(host, DirectNames[i]))
       return "DIRECT";
 if (IsHostAnIP(host))
 { 
	for (i = 0; i < cDirectIPs; i += 2)
		if (isInNet(host, DirectIPs[i], DirectIPs[i+1]))
			return "DIRECT";
 return "PROXY proxygeadm.etat-ge.ch:3128"; }




Thanx in advance for advises



________________________________


Cyril Roiron 

Chef de projet "Standards Ouverts et Logiciels Libres"

 

REPUBLIQUE ET CANTON DE GENEVE

Département de l'instruction publique, de la culture et du sport 

Service écoles-médias (SEM)

Bureau 155, Rue des Gazomètres 5 - 1205 Genève

Courrier : Case postale 241 - 1211 

Tél. +41 (0)22 388 64 53 - Fax +41 (0)22 388 63 01

http://twitter.com/#!/gelibredu
http://icp.ge.ch/sem/gelibredu/

 
-----Message d'origine-----
De : vlc-devel [mailto:vlc-devel-bounces at videolan.org] De la part de Jean-Baptiste Kempf
Envoyé : lundi, 1. décembre 2014 17:57
À : vlc-devel at videolan.org
Objet : Re: [vlc-devel] VLC module?

Le 01/12/2014 16:32, SEM-Gelibredu (EDU) a écrit :
> We use proxy configured internet access, which reads parameters through
> a ".pac" file.

Please share a sample of this pac file.



-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device
_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
https://mailman.videolan.org/listinfo/vlc-devel
_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
https://mailman.videolan.org/listinfo/vlc-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: proxy_fx.png
Type: image/png
Size: 62441 bytes
Desc: proxy_fx.png
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20150106/103b6651/attachment.png>


More information about the vlc-devel mailing list