个人工具
104.160.18.24
该IP地址的讨论
登录
查看“UbuntuHelp:Shockwave”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:Shockwave”的源代码
来自Ubuntu中文
←
UbuntuHelp:Shockwave
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/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. === 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 <code><nowiki>wine</nowiki></code> and <code><nowiki>mozplugger</nowiki></code> packages (for information on how to do this, see 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. 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: <pre><nowiki>sudo nano /etc/mozpluggerrc </nowiki></pre> 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 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: <pre><nowiki>rm ~/.mozilla/firefox/pluginreg.dat </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. === 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: <pre><nowiki>killall wine-preloader -s KILL </nowiki></pre> * '''Cause 2:''' mozplugger does not handle multiple objects. Unfortunately, there is no fix currently known for this. ==== 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: <pre><nowiki>swallow(firefox.exe) fill: wine "C:\\Program Files\\Mozilla Firefox\\firefox.exe" -chrome "file://Z:$file" </nowiki></pre> Into: <pre><nowiki>swallow(firefox.exe) fill stream: wine "C:\\Program Files\\Mozilla Firefox\\firefox.exe" -chrome "$file" </nowiki></pre> 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. ---- [[category:CategoryDocumentation]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:Shockwave
。