VLC plugin, Firefox add-on and the portable versions of the programs
spchtr - November 4, 2009 - 6:39am
Been playing around with this and got it to work, sort of. Still need to figure out how to get the NSIS installer to do the work of adding and removing the registry keys that it needs for me, but here's some base information.
If you have VLCPortable on your stick, and FireFoxPortable.
The files that are used are as follows:
It will also use the plugins folder found in VLCPortable\App\vlc\. Near as I can tell these are the core set of codecs vlc uses.
There will need to be two registry keys set up.
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\VideoLAN\VLC] "InstallDir"="D:\\Pub\\Bin\\VLCPortable\\App\\vlc" "Version"="1.0.3" @="D:\\Pub\\Bin\\VLCPortable\\App\\vlc\\vlc.exe" "Language"="1033"
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@videolan.org/vlc,version=1.0.3] "Description"="VLC Multimedia Plugin" "Path"="D:\\Pub\\Bin\\VLCPortable\\App\\vlc\\npvlc.dll" "Product"="VLC media player" "Vendor"="VideoLAN" "Version"="1.0.3"
It doesn't actually use the VLC.EXE file at all for this plugin.
The plugin does not currently have any kind of ui in it. No seek bar, no volume control, etc. Not for windows anyway.
If anyone can point me to how NSIS can write/destroy keys in the registry, that would be a big help, though I think I may have some idea where to start. And where in the FirefoxPortable.nsi I'll need to put in those changes. That would be helpful. I'd also like to add a line to the FireFoxPortable.ini, for the relative path to VLCPortable.exe so it might be able to use that to put the path in the registry. Near as I can tell the npvlc.dll will be looking for the InstallDir for vlc.exe to find the libvlc.dll, and other files. The other one is only so firefox can find npvlc.dll.
I tried removing the MozillaPlugins registry key with the npvlc.dll in the firefoxportable plugins directory, This did not work, but the above does.
Initial Post Follows:
So, I was messing around with Ubuntu the other day, and discovered that firefox has an add-on that embeds vlc directly into the web page, similarly to the windows media player in IE.
Anyhow I tried it out in windows, but it does not work. I dug a little deeper and apparently in 'vlcplugin.cpp' it has some references to checking the registry for where the install directory of vlc is.
I was wondering if there were any C++ coders out there who are a little more familiar with it, than my 3 days at it, who might want to take a look at it and see if we might be able to modify this open source code so that it could work with our nifty little portable versions of these two programs.