PDA

View Full Version : Opera, mplayerplug-in, was Via8233 C97 sound on Asus k8v-mx


grahamnorth
01-02-2009, 10:27 PM
Hi again:

I am able to get audio (radio) streaming through mplayer but not through my web-browser Opera. It seems that I need to install the appropriate plugin. The Opera website offers install instructions for Linux http://www.opera.com/docs/linux/plugins ... l/#mplayer (http://www.opera.com/docs/linux/plugins/install/#mplayer) but I find it a bit daunting to transfer instructions/directories to BSD... Before attempting does anyone else on this list have some advice for PCBSD to get Opera streaming audio.

Thanks,
Graham/

TerryP
01-03-2009, 07:17 AM
the opera-linuxplugins port works kind of like the linuxpluginwrapper / nspluginwrapper stuff judging by the looks of it. Opera should work with the corresponding mplayer-plugins.

you may have to modify Operas plugins path before it will work though. As to that link, replace /usr/lib/opera/plugins with /usr/local/share/opera/plugins and /usr/lib/mozilla/plugins depends on what you're using for a mozilla. Generally: /usr/local/lib/{firefox,firefox3,linux-mozilla,linux-flock, and so on}/plugins and /usr/local/lib/browser_plugins commonly holds some plugins, things like the mplayer-plugin, swfdec, plugger, etc.

like wise, replace /usr/lib with /usr/local/lib - most Linux distro cram everything under /usr, but on FreeBSD third party software goes in /usr/local/ instead. On my system, there is a libxpcom.so for each Mozilla based browser in it's own directory, i.e. /usr/local/lib/firefox3/libxpcom.so etc. This is basically an issue with how XPCOM / Gecko works.... and not so much a FreeBSD problem. So generally, you shouldn't symlink libxpcom into /usr/local/lib (or /usr/lib); but instead wrap opera with something that sets LD_LIBRARY_PATH=/path/to/libxpcom.so before calling opera.


Also, looking at the shell script in /usr/local/bin that wraps calls to opera already, it looks like they set LD_LIBRARY_PATH to include a search for libraries (like libxpcom.so in this case) to the location where Opera's binary is, i.e. /usr/local/share/opera/bin

so: ln -s /usr/local/lib/{your-mozilla-base}/libxpcom.so /usr/local/share/opera/bin/ -> might work just as well as placing it in a place like /usr/lib would; without giving you a royal screw later ;-).



DISCLAIMER: I've not actively used Opera as my primary browser in a long time now; and tend to change browsers periodically anyway. Do not hold me responsible for any inaccuracies, e.t.c. no warrenty, blah blah.