Make mplayerplug-in work with Opera
If you have installed mplayerplug-in (3.25) and Opera (9.00) from portage, you'll find that the plug-ins work with mozilla-firefox but not Opera. To make it work, you need to compile it manually. First, unpack the source somewhere:
# tar xzvf /usr/portage/distfiles/mplayerplug-in-3.25.tar.gz -C /tmp
# cd /tmp/mplayerplug-in
Then you need to edit a file:
# nano -w plugingate/np_entry.cppLook for lines 108 and 109 - the ones like the following:
Comment them out by inserting "//" in front of each line:if(aNPNFuncs->size < sizeof(NPNetscapeFuncs))
Compile://if(aNPNFuncs->size < sizeof(NPNetscapeFuncs))
// return NPERR_INVALID_FUNCTABLE_ERROR;
# ./configure --enable-x && makeTo avoid mixing up the mplayerplug-ins in /opt/netscape/plugins (which work with mozilla-firefox), it's a good idea to install them in /opt/opera/lib/opera/plugins instead:
# cp -vi *.so *.xpt /opt/opera/lib/opera/pluginsand link the other plug-ins in /opt/netscape/plugins there:
# cd /opt/opera/lib/opera/pluginsThen you need to prevent Opera from searching plug-ins in /opt/netscape/plugins. To do this, as a user:
# ls /opt/netscape/plugins
# ln -s /opt/netscape/plugins/flashplayer.xpt .
# ln -s /opt/netscape/plugins/libflashplayer.so .
# ln -s /opt/netscape/plugins/nphelix.so .
$ nano -w ~/.opera/pluginpath.iniChange the value for "/opt/netscape/plugins=" to 2 or 0.
To test it, start Opera, go to http://www.apple.com/trailers/. If your mplayer has been compiled with right USE flags, you should be able to watch these trailers in Opera now.