Page 1 of 1

VLC "enabler" for webdav, https, proxies, credentials

Posted: 05 Feb 2013 23:36
by gegefr
Hi !

This post to communicate around a small app i made recently (for my own needs). Just thought i should share it because it might help some other people that have issues with progressive download from web sites or webdavs.

As i said, VLC has some issues with HTTPS (does not accept any certs, and even less if self-signed),it also seems to have issues with websites that need authentication. I could not make it work with authenticated proxies either (not sure about normal proxies). And with owncloud (started playing with it), ajaxplorer, or other alternatives, webdav is somehow becoming a little bit popular.

So i made this small program, published at : http://code.google.com/p/gp-vlc/

Image

1rst "feature" webdav (only tested against owncloud's sabredav):
This program allows to list all files in a webdav (you need URL and password) and filter the files in order to find the one you want.
Ex: if you enter the following text "word1 word2 word3", only the file whose path contain "word1" AND "word2" AND "word3" will show.
First:scan, then:filter.
I think it's efficient enough not to need a full file explorer with directories...

2nd "feature" progressive download :
For playback, the program will act as a (reverse) proxy. It will handle SSL and server or proxy authentication and present to VLC a "local" (127.0.0.1:xxxx) http resource : no ssl, no authentication, no proxy for VLC.

Warning : The SSL handling is "dirty", i accept any cert from anyone.

The software is in java (>1.6) because that's the language that i know the best, so it was a lot faster to code than any native software, or trying to fix VLC.
It's open-sourced, feel free to do whatever you want, of courses suggestions, patches, or bug reports are welcome.

Yes, i "played" with the GUI to make it skype-like :roll:

Hope it'll be usefull to some people that would like to play their media directly from their owncloud (or other) webdavs !

Re: VLC "enabler" for webdav, https, proxies, credentials

Posted: 06 Feb 2013 17:16
by Jean-Baptiste Kempf
You should try VLC 2.1 :)

Re: VLC "enabler" for webdav, https, proxies, credentials

Posted: 06 Feb 2013 18:22
by gegefr
Oh, are some fixes regarding those aspects included ?

Where to get it ? ;-)
Nightly builds or pre-releases somewhere ?

Re: VLC "enabler" for webdav, https, proxies, credentials

Posted: 06 Feb 2013 18:46
by gegefr

Re: VLC "enabler" for webdav, https, proxies, credentials

Posted: 06 Feb 2013 19:01
by gegefr
After a quick test
http with password seems ok, with proxy too (did'nt test a proxy with password)
however i had no success with https

Re: VLC "enabler" for webdav, https, proxies, credentials

Posted: 06 Feb 2013 23:04
by Jean-Baptiste Kempf
https with signed cert should display a warning, not fail.

Re: VLC "enabler" for webdav, https, proxies, credentials

Posted: 07 Feb 2013 00:33
by gegefr
I'm using a properly signed StartSSL certificate for my domaine name.

As far as i can tell it's recognized by IE and Chrome.

You might want to try : https://wxcv.eu/big_buck_bunny_480p_surround-fix.avi

Re: VLC "enabler" for webdav, https, proxies, credentials

Posted: 07 Feb 2013 12:24
by Jean-Baptiste Kempf
Ok, so this is weird and is a bug.

And we have a patch for this.

Re: VLC "enabler" for webdav, https, proxies, credentials

Posted: 07 Feb 2013 17:47
by gegefr
OK

Nice to see VLC is improving even if it's making my small application almost useless :shock:

So i guess the plugin will now work better in a browser too. Just click and it should play the media :wink:

I had another questions on this topic :
* as a browser plugin, is it possible to make VLC re-use the credentials already inputed in the browser ?
* idem for proxy settings (if the browser's using them, then vlc should probably use the same)

Re: VLC "enabler" for webdav, https, proxies, credentials

Posted: 08 Feb 2013 13:30
by Jean-Baptiste Kempf
The wxcv.eu bug is fixed for VLC 2.1.0-git (tomorrow nightly build). Same for self-signed cert.

For the webplugin, no for both.

Re: VLC "enabler" for webdav, https, proxies, credentials

Posted: 08 Feb 2013 18:42
by gegefr
Okay, thanks !