Wednesday, November 12, 2008

Ubuntu 8.04上如何讓Firefox 3.01能看Windows Media Player及QuickTime格式影片

Ubuntu 8.04上如何讓Firefox 3.01能看Windows Media Player及QuickTime格式影片

  1. 不要裝mozilla-mplayer
  2. 要安裝totem-mozilla,用它的libtotem-narrowspace-plugin.so來撥放 QuickTime影音
  3. 要裝gecko-mediaplayer,用它的gecko-mediaplayer-wmp.so來撥放Windows Media Player影音

檢查以下4個目錄有沒有多餘的插件檔,若有link也必須刪掉:

  • /usr/lib/mozilla/plugins
  • /usr/lib/xulrunner/plugins
  • /usr/lib/xulrunner-addons/plugins
  • /usr/lib/firefox/plugins
  • /usr/lib/firefox-addons/plugins

QuickTime目前最新版是7.5,因為gecko-mediaplayer-qt.so太舊,常無法撥放QuickTime7的影音,所以刪掉它,用totem-mozilla的libtotem-narrowspace-plugin.so。

  • sudo rm /usr/lib/mozilla/plugins/gecko-mediaplayer-qt.*
  • sudo rm /usr/lib/xulrunner/plugins/gecko-mediaplayer-qt.*
  • sudo rm /usr/lib/firefox/plugins/gecko-mediaplayer-qt.*

RealPlayer用原廠的插件(nphelix.so),因此刪除totem-mozilla及gecko-mediaplayer的:

  • sudo rm /usr/lib/xulrunner-addons/plugins/libtotem-complex-plugin.*
  • sudo rm /usr/lib/mozilla/plugins/gecko-mediaplayer-rm.*
  • sudo rm /usr/lib/xulrunner/plugins/gecko-mediaplayer-rm.*
  • sudo rm /usr/lib/firefox/plugins/gecko-mediaplayer-rm.*

Windows Media Player用gecko-mediaplayer的gecko-mediaplayer-wmp.so,將totem-mozilla的libtotem-gmp-plugin.so廢掉:

  • sudo rm /usr/lib/xulrunner-addons/plugins/libtotem-gmp-plugin.*

測試QuickTime: http://www.apple.com/trailers/
測試Windows Media Player: http://www.bloomberg.com/tvradio/tv/
測試RealPlayer: http://news.bbc.co.uk/

No comments: