Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Opera裡使用mplayerplug-in
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese)
View previous topic :: View next topic  
Author Message
Hauser
l33t
l33t


Joined: 27 Dec 2003
Posts: 650
Location: 4-dimensional hyperplane

PostPosted: Sat Aug 05, 2006 2:56 am    Post subject: Opera裡使用mplayerplug-in Reply with quote

English version: http://gentoo-wiki.com/HOWTO_Make_mplayerplug-in_work_with_Opera

如果通過portage安裝了Opera(9.00)和mplayerplug-in(2.35-r1),你會發現mplayerplug-in在Opera裡無法使用(Firefox則沒問題)。解決方法是另外手動編譯一下mplayerplug-in。首先解開源碼:
Code:
# tar -xzvf /usr/portage/distfiles/mplayerplug-in-3.25.tar.gz -C /tmp
# cd /tmp/mplayerplug-in

有個文件需要改一下,
Code:
# nano -w plugingate/np_entry.cpp

找到第108,109行的地方
Code:
if(aNPNFuncs->size < sizeof(NPNetscapeFuncs))         
      return NPERR_INVALID_FUNCTABLE_ERROR;

將這兩行注釋掉,即在前面加上“//”:
Code:
//if(aNPNFuncs->size < sizeof(NPNetscapeFuncs))         
//      return NPERR_INVALID_FUNCTABLE_ERROR;

然後編譯
Code:
# ./configure --enable-x && make

爲避免與裝到/opt/netscape/plugins裡的mplayerplug-in(Firefox用這裡的plug-ins)混淆,建議將編好的plug-ins裝到/opt/opera/lib/opera/plugins裡
Code:
# cp -vi *.so *.xpt /opt/opera/lib/opera/plugins

並且爲/opt/netscape/plugins裏其他的plug-ins做好link:
Code:
# cd /opt/opera/lib/opera/plugins
# 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 .

接下來在Opera的plugin搜索路徑裡去掉/opt/netscape/plugins,以普通用戶的身份
Code:
$ nano -w ~/.opera/pluginpath.ini

將"/opt/netscape/plugins="的值改成2或0便可以了。這樣的處理方法可以使Opera和Firefox都用上mplayerplug-in,互不干擾。

然後啓動Opera,到http://www.apple.com/trailers/去試一下。如果你的mplayer編譯選項夠全的話,便可以在Opera裡看到那些電影trailer了。 :)
_________________
AMD Athlon XP 2600+; 512M RAM;
nVidia FX5700LE; Hitachi 120Gb
2.6.9-nitro4, reiser4, linux26-headers+nptl

Do I like to compile everything?
Positive definite!
Back to top
View user's profile Send private message
akar
Bodhisattva
Bodhisattva


Joined: 03 Dec 2004
Posts: 348
Location: HKSAR,China

PostPosted: Mon Aug 07, 2006 12:47 am    Post subject: Reply with quote

  “唔該晒” Hauser,  己放到 zh.gentoo-wiki.com (中文版面)。
_________________
AKar
Back to top
View user's profile Send private message
Hauser
l33t
l33t


Joined: 27 Dec 2003
Posts: 650
Location: 4-dimensional hyperplane

PostPosted: Mon Aug 07, 2006 5:57 am    Post subject: Reply with quote

原來還有個中文wiki! :o
我只顧著寫英文wiki了。 :P
_________________
AMD Athlon XP 2600+; 512M RAM;
nVidia FX5700LE; Hitachi 120Gb
2.6.9-nitro4, reiser4, linux26-headers+nptl

Do I like to compile everything?
Positive definite!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum