特殊:Badtitle/NS100:Shockwave:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/Shockwave}} | {{From|https://help.ubuntu.com/community/Shockwave}} | ||
{{Languages|UbuntuHelp:Shockwave}} | {{Languages|UbuntuHelp:Shockwave}} | ||
[http://en.wikipedia.org/wiki/Macromedia_Shockwave Shockwave] is a multimedia player. Designed by Macromedia in the mid 1990s, it was followed by Shockwave Flash (or just [[UbuntuHelp: | [http://en.wikipedia.org/wiki/Macromedia_Shockwave Shockwave] is a multimedia player. Designed by Macromedia in the mid 1990s, it was followed by Shockwave Flash (or just [[UbuntuHelp:Flash]]), a simpler format which became far more popular. Today, Shockwave is most commonly used for Internet games. | ||
=== Installation === | === Installation === | ||
Unfortunately, the Shockwave player is only available for Windows. On a PC, it may be possible to run Shockwave under Ubuntu using [[UbuntuHelp: | Unfortunately, the Shockwave player is only available for Windows. On a PC, it may be possible to run Shockwave under Ubuntu using [[UbuntuHelp:Wine]] and running the Windows versions of Firefox and the Shockwave player. (Wine does not work on PowerPC and may not work as expected on 64-bit PCs.) You can then use '''mozplugger''', a program that lets you "embed" other programs in your web browser. | ||
First, install the <code><nowiki>wine</nowiki></code> and <code><nowiki>mozplugger</nowiki></code> packages (for information on how to do this, see [[UbuntuHelp:InstallingSoftware|InstallingSoftware]]). | First, install the <code><nowiki>wine</nowiki></code> and <code><nowiki>mozplugger</nowiki></code> packages (for information on how to do this, see [[UbuntuHelp:InstallingSoftware|InstallingSoftware]]). | ||
You then need to install the '''Windows''' version of Firefox (yes, you read that right). Download it from [http://www.mozilla.com/firefox/all.html Mozilla's web site]. Choose to open the installer with Wine and follow the on-screen instructions. | <pre><nowiki> | ||
sudo apt-get install wine mozplugger | |||
</nowiki></pre> | |||
You then need to install the '''Windows''' version of Firefox (yes, you read that right). Download it from [http://www.mozilla.com/firefox/all.html Mozilla's web site]. Choose to open the installer with Wine and follow the on-screen instructions. | |||
When the installation has finished, you then have to go to [http://www.adobe.com/shockwave/welcome/ a web site that requires Shockwave], and choose to get the missing plugin. Again, follow the on-screen instructions, and when the plugin has installed and is working, you may close Firefox. | When the installation has finished, you then have to go to [http://www.adobe.com/shockwave/welcome/ a web site that requires Shockwave], and choose to get the missing plugin. Again, follow the on-screen instructions, and when the plugin has installed and is working, you may close Firefox. | ||
Now you need to configure mozplugger to use the Windows version of Firefox for Shockwave files. From a terminal, type: | Now you need to configure mozplugger to use the Windows version of Firefox for Shockwave files. From a terminal, type: | ||
<pre><nowiki>sudo | <pre><nowiki> | ||
sudo gedit /etc/mozpluggerrc | |||
</nowiki></pre> | </nowiki></pre> | ||
Add the following two lines to the end of the file: | Add the following two lines to the end of the file: | ||
<pre><nowiki>application/x-director: dir,dcr,dxr,cst,cct,cxt,w3d,fgd,swa: Macromedia Director file | <pre><nowiki> | ||
swallow(firefox.exe) fill: wine "C:\\Program Files\\Mozilla Firefox\\firefox.exe" -chrome "file://Z:$file"</nowiki></pre> | application/x-director: dir,dcr,dxr,cst,cct,cxt,w3d,fgd,swa: Macromedia Director file | ||
swallow(firefox.exe) fill: wine "C:\\Program Files\\Mozilla Firefox\\firefox.exe" -chrome "file://Z:$file" | |||
</nowiki></pre> | |||
Finally, you need to make Firefox reload the plugin database. Close all Firefox windows and run this command in a terminal: | Finally, you need to make Firefox reload the plugin database. Close all Firefox windows and run this command in a terminal: | ||
<pre><nowiki>rm ~/.mozilla/firefox/pluginreg.dat | <pre><nowiki> | ||
rm ~/.mozilla/firefox/pluginreg.dat | |||
</nowiki></pre> | </nowiki></pre> | ||
Congratulations, you should now have a working, if not convuluted, Shockwave setup. You can test it on the [http://www.adobe.com/shockwave/welcome/ Test Macromedia Shockwave & Flash Players] page. However, some Shockwave objects may not work. See the issues and workaround solutions section below. | Congratulations, you should now have a working, if not convuluted, Shockwave setup. You can test it on the [http://www.adobe.com/shockwave/welcome/ Test Macromedia Shockwave & Flash Players] page. However, some Shockwave objects may not work. See the issues and workaround solutions section below. | ||
第22行: | 第29行: | ||
* '''Cause 1:''' Wine or Shockwave is still running in the background. | * '''Cause 1:''' Wine or Shockwave is still running in the background. | ||
* '''Workaround 1: ''' Type this in a terminal to end all wine processes: | * '''Workaround 1: ''' Type this in a terminal to end all wine processes: | ||
<pre><nowiki>killall wine-preloader -s KILL | <pre><nowiki> | ||
killall wine-preloader -s KILL | |||
</nowiki></pre> | </nowiki></pre> | ||
* '''Cause 2:''' mozplugger does not handle multiple objects. | * '''Cause 2:''' mozplugger does not handle multiple objects. | ||
Unfortunately, there is no fix currently known for this. | Unfortunately, there is no fix currently known for this. | ||
==== Firefox is asking for restoring old sessions before playing objects ==== | |||
* '''Cause:''' Session restore is enabled in the Windows version of Firefox | |||
* '''Workaround 1: ''' Type this in a terminal to end all wine processes: | |||
<pre><nowiki> | |||
killall wine-preloader -s KILL | |||
</nowiki></pre> | |||
Start the Windows version of Firefox. | |||
Type "about:config" in the Location Bar and press Enter. | |||
Search for "browser.sessionstore.resume_from_crash" and double click to set it to false. | |||
==== Objects claim they're being run from the harddisk ==== | ==== Objects claim they're being run from the harddisk ==== | ||
* '''Cause:''' The files are first downloaded and then run from the Windows version of Firefox. | * '''Cause:''' The files are first downloaded and then run from the Windows version of Firefox. | ||
* '''Workaround:''' Change the /etc/mozpluggerrc file so that streaming is enabled: | * '''Workaround:''' Change the /etc/mozpluggerrc file so that streaming is enabled: | ||
Change this line: | Change this line: | ||
<pre><nowiki>swallow(firefox.exe) fill: wine "C:\\Program Files\\Mozilla Firefox\\firefox.exe" -chrome "file://Z:$file" | <pre><nowiki> | ||
swallow(firefox.exe) fill: wine "C:\\Program Files\\Mozilla Firefox\\firefox.exe" -chrome "file://Z:$file" | |||
</nowiki></pre> | </nowiki></pre> | ||
Into: | Into: | ||
<pre><nowiki>swallow(firefox.exe) fill stream: wine "C:\\Program Files\\Mozilla Firefox\\firefox.exe" -chrome "$file" | <pre><nowiki> | ||
swallow(firefox.exe) fill stream: wine "C:\\Program Files\\Mozilla Firefox\\firefox.exe" -chrome "$file" | |||
</nowiki></pre> | </nowiki></pre> | ||
Then remove ~/.mozilla/firefox/pluginreg.dat and restart Firefox. This may not work if you are connected using IPv6 or a proxy. | Then remove ~/.mozilla/firefox/pluginreg.dat and restart Firefox. This may not work if you are connected using IPv6 or a proxy. |
2008年10月19日 (日) 17:16的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Shockwave }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/af | • {{#if: UbuntuHelp:Shockwave|Afrikaans| [[::Shockwave/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/ar | • {{#if: UbuntuHelp:Shockwave|العربية| [[::Shockwave/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/az | • {{#if: UbuntuHelp:Shockwave|azərbaycanca| [[::Shockwave/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/bcc | • {{#if: UbuntuHelp:Shockwave|جهلسری بلوچی| [[::Shockwave/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/bg | • {{#if: UbuntuHelp:Shockwave|български| [[::Shockwave/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/br | • {{#if: UbuntuHelp:Shockwave|brezhoneg| [[::Shockwave/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/ca | • {{#if: UbuntuHelp:Shockwave|català| [[::Shockwave/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/cs | • {{#if: UbuntuHelp:Shockwave|čeština| [[::Shockwave/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/de | • {{#if: UbuntuHelp:Shockwave|Deutsch| [[::Shockwave/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/el | • {{#if: UbuntuHelp:Shockwave|Ελληνικά| [[::Shockwave/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/es | • {{#if: UbuntuHelp:Shockwave|español| [[::Shockwave/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/fa | • {{#if: UbuntuHelp:Shockwave|فارسی| [[::Shockwave/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/fi | • {{#if: UbuntuHelp:Shockwave|suomi| [[::Shockwave/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/fr | • {{#if: UbuntuHelp:Shockwave|français| [[::Shockwave/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/gu | • {{#if: UbuntuHelp:Shockwave|ગુજરાતી| [[::Shockwave/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/he | • {{#if: UbuntuHelp:Shockwave|עברית| [[::Shockwave/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/hu | • {{#if: UbuntuHelp:Shockwave|magyar| [[::Shockwave/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/id | • {{#if: UbuntuHelp:Shockwave|Bahasa Indonesia| [[::Shockwave/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/it | • {{#if: UbuntuHelp:Shockwave|italiano| [[::Shockwave/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/ja | • {{#if: UbuntuHelp:Shockwave|日本語| [[::Shockwave/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/ko | • {{#if: UbuntuHelp:Shockwave|한국어| [[::Shockwave/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/ksh | • {{#if: UbuntuHelp:Shockwave|Ripoarisch| [[::Shockwave/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/mr | • {{#if: UbuntuHelp:Shockwave|मराठी| [[::Shockwave/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/ms | • {{#if: UbuntuHelp:Shockwave|Bahasa Melayu| [[::Shockwave/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/nl | • {{#if: UbuntuHelp:Shockwave|Nederlands| [[::Shockwave/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/no | • {{#if: UbuntuHelp:Shockwave|norsk| [[::Shockwave/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/oc | • {{#if: UbuntuHelp:Shockwave|occitan| [[::Shockwave/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/pl | • {{#if: UbuntuHelp:Shockwave|polski| [[::Shockwave/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/pt | • {{#if: UbuntuHelp:Shockwave|português| [[::Shockwave/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/ro | • {{#if: UbuntuHelp:Shockwave|română| [[::Shockwave/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/ru | • {{#if: UbuntuHelp:Shockwave|русский| [[::Shockwave/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/si | • {{#if: UbuntuHelp:Shockwave|සිංහල| [[::Shockwave/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/sq | • {{#if: UbuntuHelp:Shockwave|shqip| [[::Shockwave/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/sr | • {{#if: UbuntuHelp:Shockwave|српски / srpski| [[::Shockwave/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/sv | • {{#if: UbuntuHelp:Shockwave|svenska| [[::Shockwave/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/th | • {{#if: UbuntuHelp:Shockwave|ไทย| [[::Shockwave/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/tr | • {{#if: UbuntuHelp:Shockwave|Türkçe| [[::Shockwave/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/vi | • {{#if: UbuntuHelp:Shockwave|Tiếng Việt| [[::Shockwave/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/yue | • {{#if: UbuntuHelp:Shockwave|粵語| [[::Shockwave/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/zh | • {{#if: UbuntuHelp:Shockwave|中文| [[::Shockwave/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/zh-hans | • {{#if: UbuntuHelp:Shockwave|中文(简体)| [[::Shockwave/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Shockwave | UbuntuHelp:Shockwave | {{#if: | :}}Shockwave}}/zh-hant | • {{#if: UbuntuHelp:Shockwave|中文(繁體)| [[::Shockwave/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:Shockwave|:Shockwave|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Shockwave/zh | | {{#ifexist: Shockwave/zh | | {{#ifeq: {{#titleparts:Shockwave|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Shockwave|1|-1|}} | zh | | }}
Shockwave is a multimedia player. Designed by Macromedia in the mid 1990s, it was followed by Shockwave Flash (or just UbuntuHelp:Flash), a simpler format which became far more popular. Today, Shockwave is most commonly used for Internet games.
Installation
Unfortunately, the Shockwave player is only available for Windows. On a PC, it may be possible to run Shockwave under Ubuntu using UbuntuHelp:Wine and running the Windows versions of Firefox and the Shockwave player. (Wine does not work on PowerPC and may not work as expected on 64-bit PCs.) You can then use mozplugger, a program that lets you "embed" other programs in your web browser.
First, install the wine
and mozplugger
packages (for information on how to do this, see InstallingSoftware).
sudo apt-get install wine mozplugger
You then need to install the Windows version of Firefox (yes, you read that right). Download it from Mozilla's web site. Choose to open the installer with Wine and follow the on-screen instructions. When the installation has finished, you then have to go to a web site that requires Shockwave, and choose to get the missing plugin. Again, follow the on-screen instructions, and when the plugin has installed and is working, you may close Firefox. Now you need to configure mozplugger to use the Windows version of Firefox for Shockwave files. From a terminal, type:
sudo gedit /etc/mozpluggerrc
Add the following two lines to the end of the file:
application/x-director: dir,dcr,dxr,cst,cct,cxt,w3d,fgd,swa: Macromedia Director file swallow(firefox.exe) fill: wine "C:\\Program Files\\Mozilla Firefox\\firefox.exe" -chrome "file://Z:$file"
Finally, you need to make Firefox reload the plugin database. Close all Firefox windows and run this command in a terminal:
rm ~/.mozilla/firefox/pluginreg.dat
Congratulations, you should now have a working, if not convuluted, Shockwave setup. You can test it on the Test Macromedia Shockwave & Flash Players page. However, some Shockwave objects may not work. See the issues and workaround solutions section below.
Issues and workarounds
Objects appear in a small window of their own
Posssible causes:
- Cause 1: Wine or Shockwave is still running in the background.
- Workaround 1: Type this in a terminal to end all wine processes:
killall wine-preloader -s KILL
- Cause 2: mozplugger does not handle multiple objects.
Unfortunately, there is no fix currently known for this.
Firefox is asking for restoring old sessions before playing objects
- Cause: Session restore is enabled in the Windows version of Firefox
- Workaround 1: Type this in a terminal to end all wine processes:
killall wine-preloader -s KILL
Start the Windows version of Firefox. Type "about:config" in the Location Bar and press Enter. Search for "browser.sessionstore.resume_from_crash" and double click to set it to false.
Objects claim they're being run from the harddisk
- Cause: The files are first downloaded and then run from the Windows version of Firefox.
- Workaround: Change the /etc/mozpluggerrc file so that streaming is enabled:
Change this line:
swallow(firefox.exe) fill: wine "C:\\Program Files\\Mozilla Firefox\\firefox.exe" -chrome "file://Z:$file"
Into:
swallow(firefox.exe) fill stream: wine "C:\\Program Files\\Mozilla Firefox\\firefox.exe" -chrome "$file"
Then remove ~/.mozilla/firefox/pluginreg.dat and restart Firefox. This may not work if you are connected using IPv6 or a proxy.
Objects claim they're "stolen"
- Cause (when using streaming): The Shockwave object expects the "Referrer" HTTP header to be set, which mozplugger does not do.
- Workaround: None yet.