个人工具

“UbuntuHelp:Shockwave”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
 
(未显示同一用户的6个中间版本)
第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:Flash]]), a simpler format which became far more popular.  Today, Shockwave is most commonly used for Internet games.
+
[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|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: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.
+
Unfortunately, the Shockwave player is only available for Windows.  On a PC, it may be possible to run Shockwave under Ubuntu using [[UbuntuHelp:Wine|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 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 nano /etc/mozpluggerrc
+
<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 stream: wine "C:\\Program Files\\Mozilla Firefox\\firefox.exe" -chrome "$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/*.default/pluginreg.dat
 
</nowiki></pre>
 
</nowiki></pre>
 +
In later versions this file may have been moved:
 +
<pre><nowiki>
 +
rm ~/.mozilla/firefox/RANDOM-STRING/pluginreg.dat
 +
</nowiki></pre>
 +
Replace "RANDOM-STRING" with the random string your Mozilla has assigned for your computer.
 +
Removal of pluginreg.dat wasn't needed with Ubuntu 9.04 and Firefox 3.0.14.
 
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.
 +
Note: If you want to use Shockwave from multiple user accounts on the same machine, you have to repeat the following steps while logged in as each user: download, install, and launch Windows Firefox; download Shockwave plugin; remove pluginreg.dat if needed.
 
=== Issues and workarounds ===
 
=== Issues and workarounds ===
 
==== Objects appear in a small window of their own ====
 
==== Objects appear in a small window of their own ====
第22行: 第36行:
 
* '''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.
==== Objects claim they're being run from the harddisk ====
+
==== Firefox is asking for restoring old sessions before playing objects ====
* '''Cause:''' The files are first downloaded and then run from the Windows version of Firefox.
+
* '''Cause:''' Session restore is enabled in the Windows version of Firefox
* '''Workaround:''' Change the /etc/mozpluggerrc file so that streaming is enabled:
+
* '''Workaround 1: ''' Type this in a terminal to end all wine processes:
Change this line:
+
<pre><nowiki>
<pre><nowiki>swallow(firefox.exe) fill: wine "C:\\Program Files\\Mozilla Firefox\\firefox.exe" -chrome "file://Z:$file"
+
killall wine-preloader -s KILL
</nowiki></pre>
+
Into:
+
<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.
+
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 "stolen" ====
 
==== 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.
 
* '''Cause''' (when using streaming): The Shockwave object expects the "Referrer" HTTP header to be set, which mozplugger does not do.
 
* '''Workaround:''' None yet.
 
* '''Workaround:''' None yet.
 +
==== Shockwave player shows "Adobe Shockwave Player is now installing" but gets no further ====
 +
* '''Cause''' (not verified): Shockwave Player 11 may not work under Wine
 +
* '''Workaround''': Install Windows Shockwave Player version 9.0.0.434 from http://kb2.adobe.com/cps/186/tn_18629.html, Adobe Technote "Stand-alone installers for Shockwave Player: previous versions only" (linked from Shockwave "Support Center" link on http://www.adobe.com/shockwave/download/alternates/).
 
----
 
----
[[category:CategoryDocumentation]]
 
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2009年11月17日 (二) 20:36的最新版本

Shockwave is a multimedia player. Designed by Macromedia in the mid 1990s, it was followed by Shockwave Flash (or just 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 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 stream: wine "C:\\Program Files\\Mozilla Firefox\\firefox.exe" -chrome "$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/*.default/pluginreg.dat

In later versions this file may have been moved:

rm ~/.mozilla/firefox/RANDOM-STRING/pluginreg.dat

Replace "RANDOM-STRING" with the random string your Mozilla has assigned for your computer. Removal of pluginreg.dat wasn't needed with Ubuntu 9.04 and Firefox 3.0.14. 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. Note: If you want to use Shockwave from multiple user accounts on the same machine, you have to repeat the following steps while logged in as each user: download, install, and launch Windows Firefox; download Shockwave plugin; remove pluginreg.dat if needed.

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 "stolen"

  • Cause (when using streaming): The Shockwave object expects the "Referrer" HTTP header to be set, which mozplugger does not do.
  • Workaround: None yet.

Shockwave player shows "Adobe Shockwave Player is now installing" but gets no further