[vlc-devel] Re: Mozilla Plugin - Debugging Suggestions

Gildas Bazin gbazin at altern.org
Thu Apr 1 12:42:43 CEST 2004


On Thursday 01 April 2004 04:27, James MacLean wrote:
> vlc-trunk now compiling on Windows fine... Thanks :).
> 
> Want to play with Mozilla plugin. Seems to be working sometimes, but not
> others. Probably my process. I needed a gecko-sdk, so I installed
> gecko-sdk-win32-1.4b.zip. Then xpidl did not seem to use the -I's, so I
> copied the nsI*.idl's to the mozilla dir and by compiling from the root
> (vlc-trunk) was able to get the plugin pieces to compile and work. It
> seems though that sometimes they work, but if I recompile, then they
> won't?
> 

If you are compiling under cygwin then you'll need to manually edit 
mozilla/Makefile and make sure you have the following lines:

XPIDL = ../../gecko-sdk/xpcom/bin/xpidl
XPIDL_INCL = -I../../gecko-sdk/xpcom/idl

> I am unable to get the vlc-trunk Mozilla plugin to work at all :(.
> 
> Wondering if there is any "magic" I should be using to compile the plugin 
> properly and are there any docs for the Windows compile process? 
> 

Once you have the plugin compiled, you can either copy the dll in the 
mozilla plugins's directory or edit the 
"HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\" registry entry to add the 
path to your dll.

Once you have done that, typing "about:plugins" in the url tab of the 
browser should show your VLC plugin.

You'll also need to make sure you have the registry entry:
"HKEY_LOCAL_MACHINE\SOFTWARE\VideoLAN\VLC\InstallDir" because the VLC 
mozilla plugin will use this to find where the VLC plugins are installed.

And lastly, you will have to copy/registrer the vlcintf.xpt with regxpcom in 
order to have a scriptable VLC plugin.

> How do I debug what is going on with the plugin in Mozilla when I try to 
> use it?
> 

You can run mozilla from a dos command box with "mozilla -console". The VLC 
plugin will use this console to output all its debug messages. You'll then 
be able to find out if it is finding its plugins, etc...

Hope this helps,

--
Gildas

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc-devel mailing list